mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 05:02:25 -05:00
allow custom ports for webserver and le
This commit is contained in:
parent
05e9af089c
commit
318e377359
8 changed files with 79 additions and 26 deletions
|
|
@ -62,5 +62,11 @@ func generalFlags(flagNames, envNames config.Flags, defaults config.Defaults) []
|
|||
Value: defaults.Protocol,
|
||||
EnvVars: []string{envNames.Protocol},
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: flagNames.Port,
|
||||
Usage: "Port to use for GoToSocial. Change this to 443 if you're running the binary directly on the host machine.",
|
||||
Value: defaults.Port,
|
||||
EnvVars: []string{envNames.Port},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,6 +31,12 @@ func letsEncryptFlags(flagNames, envNames config.Flags, defaults config.Defaults
|
|||
Value: defaults.LetsEncryptEnabled,
|
||||
EnvVars: []string{envNames.LetsEncryptEnabled},
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: flagNames.LetsEncryptPort,
|
||||
Usage: "Port to listen on for letsencrypt certificate challenges. Must not be the same as the GtS webserver/API port.",
|
||||
Value: defaults.LetsEncryptPort,
|
||||
EnvVars: []string{envNames.LetsEncryptPort},
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: flagNames.LetsEncryptCertDir,
|
||||
Usage: "Directory to store acquired letsencrypt certificates.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue