Add VPN_CLIENTS_CAN_ACCESS_DJANGO configuration and update related settings

This commit is contained in:
Eduardo Silva
2026-02-09 17:41:00 -03:00
parent e742a3083b
commit 54817e5e4c
8 changed files with 33 additions and 4 deletions

View File

@@ -23,4 +23,13 @@ TIMEZONE=America/Sao_Paulo
# If you need additional hosts to be allowed, you can specify them here.
# The SERVER_ADDRESS will always be allowed.
# Example: EXTRA_ALLOWED_HOSTS=app1.example.com,app2.example.com:8443,app3.example.com
#EXTRA_ALLOWED_HOSTS=app1.example.com,app2.example.com:8443,app3.example.com
#EXTRA_ALLOWED_HOSTS=app1.example.com,app2.example.com:8443,app3.example.com
# Allow VPN clients to access Django directly through the internal interface.
# When enabled, users connected to the VPN can open the web interface using:
# http://ip_or_hostname:8000
#
# IMPORTANT:
# The internal address used for VPN access MUST be added to EXTRA_ALLOWED_HOSTS,
# including the port :8000, otherwise Django will block the request (CSRF/Host validation).
# VPN_CLIENTS_CAN_ACCESS_DJANGO=True