dactyl
October 23, 2023, 9:18pm
1
I’m running my VW instance behind a reverse proxy that manages SSL certificates and access restrictions. The proxy sends through X-Forwarded-For header, but there doesn’t seem to be a way to configure VW for a list of trusted proxies that it should listen to that header for.
Not sure if this is a feature request or something I’m missing in the configuration.
The latter, you need to provide the right headers.
# ATTACHMENTS_FOLDER=data/attachments
# SENDS_FOLDER=data/sends
# TMP_FOLDER=data/tmp
## Templates data folder, by default uses embedded templates
## Check source code to see the format
# TEMPLATES_FOLDER=/path/to/templates
## Automatically reload the templates for every request, slow, use only for development
# RELOAD_TEMPLATES=false
## Client IP Header, used to identify the IP of the client, defaults to "X-Real-IP"
## Set to the string "none" (without quotes), to disable any headers and just use the remote IP
# IP_HEADER=X-Real-IP
## Cache time-to-live for successfully obtained icons, in seconds (0 is "forever")
# ICON_CACHE_TTL=2592000
## Cache time-to-live for icons which weren't available, in seconds (0 is "forever")
# ICON_CACHE_NEGTTL=259200
## Web vault settings
# WEB_VAULT_FOLDER=web-vault/
1 Like
dactyl
October 23, 2023, 11:14pm
3
Awesome, thank you for the quick reply! I was able to add that env variable and have it all working as expected now.
Add the following line to config.json configuration file:
“ip_header”: “X-Forwarded-For”,
What will this line change?