Add basic support for the services.config map.
This commit is contained in:
parent
44f3ab6f2f
commit
51c304307f
|
@ -12,7 +12,12 @@
|
|||
|
||||
"services": {
|
||||
"proxy": { "enable": "true" },
|
||||
"ssh": { "enable": "true" },
|
||||
"ssh": {
|
||||
"enable": "true",
|
||||
"config": {
|
||||
"banner": "くコ:彡 くコ:彡 くコ:彡\n",
|
||||
},
|
||||
},
|
||||
"navidrome": {
|
||||
"enable": "true",
|
||||
"provider": "docker",
|
||||
|
|
3
main.go
3
main.go
|
@ -27,6 +27,9 @@ type NetworkingConfig struct {
|
|||
type ServiceConfig struct {
|
||||
Enable string
|
||||
|
||||
Config map[string]interface{}
|
||||
ExtraConfig string
|
||||
|
||||
Src string
|
||||
Ports []string
|
||||
Volumes []string
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{{if .Ports -}}
|
||||
Port {{index .Ports 0}}
|
||||
{{- end}}
|
||||
{{with .Ports}}Port {{index . 0}}{{end}}
|
||||
#AddressFamily any
|
||||
#ListenAddress 0.0.0.0
|
||||
#ListenAddress ::
|
||||
|
@ -84,8 +82,7 @@ X11Forwarding no
|
|||
#ChrootDirectory none
|
||||
#VersionAddendum none
|
||||
|
||||
# no default banner path
|
||||
#Banner none
|
||||
{{if .Config.banner}}Banner /etc/ssh/sshd_banner{{end}}
|
||||
|
||||
# override default of no subsystems
|
||||
Subsystem sftp internal-sftp
|
||||
|
|
|
@ -7,5 +7,6 @@ provider: "system",
|
|||
packages: [ "openssh-server" ],
|
||||
configFiles: [
|
||||
"sshd.template:/etc/ssh/sshd_config",
|
||||
"banner.template:/etc/ssh/sshd_banner",
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue