Add basic support for the services.config map.

This commit is contained in:
root 2025-03-04 21:30:30 -05:00
parent 44f3ab6f2f
commit 51c304307f
4 changed files with 12 additions and 6 deletions

View file

@ -12,7 +12,12 @@
"services": {
"proxy": { "enable": "true" },
"ssh": { "enable": "true" },
"ssh": {
"enable": "true",
"config": {
"banner": "くコ:彡 くコ:彡 くコ:彡\n",
},
},
"navidrome": {
"enable": "true",
"provider": "docker",

View file

@ -27,6 +27,9 @@ type NetworkingConfig struct {
type ServiceConfig struct {
Enable string
Config map[string]interface{}
ExtraConfig string
Src string
Ports []string
Volumes []string

View file

@ -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

View file

@ -7,5 +7,6 @@ provider: "system",
packages: [ "openssh-server" ],
configFiles: [
"sshd.template:/etc/ssh/sshd_config",
"banner.template:/etc/ssh/sshd_banner",
]
}