Multiplex http and ssh ports

This commit is contained in:
Tom Wiesing 2023-03-08 11:27:19 +01:00
parent 668f1dd193
commit f0073a649f
No known key found for this signature in database
20 changed files with 188 additions and 29 deletions

View file

@ -79,6 +79,10 @@ func (tpl *Template) SetDefaults() (err error) {
// Generate generates a configuration file for this configuration
func (tpl Template) Generate() Config {
return Config{
Listen: ListenConfig{
Ports: []uint16{80},
AdvertisedSSHPort: 80,
},
Paths: PathsConfig{
Root: tpl.RootPath,
OverridesJSON: filepath.Join(tpl.RootPath, bootstrap.OverridesJSON),
@ -114,8 +118,6 @@ func (tpl Template) Generate() Config {
MaxBackupAge: 30 * 24 * time.Hour, // 1 month
PasswordLength: 64,
PublicSSHPort: 2222,
SessionSecret: tpl.SessionSecret,
CronInterval: 10 * time.Minute,
}