summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gotosocial/generalflags.go6
-rw-r--r--cmd/gotosocial/letsencryptflags.go6
2 files changed, 12 insertions, 0 deletions
diff --git a/cmd/gotosocial/generalflags.go b/cmd/gotosocial/generalflags.go
index 3b0b9806a..06d6e8922 100644
--- a/cmd/gotosocial/generalflags.go
+++ b/cmd/gotosocial/generalflags.go
@@ -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},
+ },
}
}
diff --git a/cmd/gotosocial/letsencryptflags.go b/cmd/gotosocial/letsencryptflags.go
index 03495fd11..86079c015 100644
--- a/cmd/gotosocial/letsencryptflags.go
+++ b/cmd/gotosocial/letsencryptflags.go
@@ -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.",