mirror of
https://github.com/pushbits/server.git
synced 2025-06-03 11:12:05 +02:00
Add support for setting trusted proxies
This commit is contained in:
parent
7a37199d79
commit
4d015eb7be
4 changed files with 22 additions and 5 deletions
|
@ -37,8 +37,9 @@ type Matrix struct {
|
|||
type Configuration struct {
|
||||
Debug bool `default:"false"`
|
||||
HTTP struct {
|
||||
ListenAddress string `default:""`
|
||||
Port int `default:"8080"`
|
||||
ListenAddress string `default:""`
|
||||
Port int `default:"8080"`
|
||||
TrustedProxies []string `default:"[]"`
|
||||
}
|
||||
Database struct {
|
||||
Dialect string `default:"sqlite3"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue