mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 12:52:26 -06:00
add bindAddress configuration option (#320)
* add bindAddress configuration option * clarify that bindAddress can be a hostname
This commit is contained in:
parent
6c0550e76f
commit
1ded58b34b
6 changed files with 42 additions and 3 deletions
|
|
@ -11,6 +11,7 @@ func TestDefault() *Config {
|
|||
Host: defaults.Host,
|
||||
AccountDomain: defaults.AccountDomain,
|
||||
Protocol: defaults.Protocol,
|
||||
BindAddress: defaults.BindAddress,
|
||||
Port: defaults.Port,
|
||||
TrustedProxies: defaults.TrustedProxies,
|
||||
SoftwareVersion: defaults.SoftwareVersion,
|
||||
|
|
@ -85,6 +86,7 @@ func Default() *Config {
|
|||
ApplicationName: defaults.ApplicationName,
|
||||
Host: defaults.Host,
|
||||
Protocol: defaults.Protocol,
|
||||
BindAddress: defaults.BindAddress,
|
||||
Port: defaults.Port,
|
||||
TrustedProxies: defaults.TrustedProxies,
|
||||
SoftwareVersion: defaults.SoftwareVersion,
|
||||
|
|
@ -161,6 +163,7 @@ func GetDefaults() Defaults {
|
|||
Host: "",
|
||||
AccountDomain: "",
|
||||
Protocol: "https",
|
||||
BindAddress: "0.0.0.0",
|
||||
Port: 8080,
|
||||
TrustedProxies: []string{"127.0.0.1/32"}, // localhost
|
||||
|
||||
|
|
@ -227,6 +230,7 @@ func GetTestDefaults() Defaults {
|
|||
Host: "localhost:8080",
|
||||
AccountDomain: "localhost:8080",
|
||||
Protocol: "http",
|
||||
BindAddress: "127.0.0.1",
|
||||
Port: 8080,
|
||||
TrustedProxies: []string{"127.0.0.1/32"},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue