Multiplex http and ssh ports
This commit is contained in:
parent
668f1dd193
commit
f0073a649f
20 changed files with 188 additions and 29 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue