Add "behind proxy" mode to use forwarded IP headers
This commit is contained in:
parent
272ccc1929
commit
a6e05ba4c4
3 changed files with 11 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ type Config struct {
|
|||
App struct {
|
||||
ListenAddress string `env:"APP_LISTEN_ADDRESS"`
|
||||
ListenPort uint `env:"APP_LISTEN_PORT"`
|
||||
BehindProxy bool `env:"APP_BEHIND_PROXY"`
|
||||
}
|
||||
Database struct {
|
||||
Location string `env:"DATABASE_LOCATION"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue