diff --git a/deploy/examples/kubernetes/ConfigMap.yml b/deploy/examples/kubernetes/ConfigMap.yml index 873a2c90..48646c9f 100644 --- a/deploy/examples/kubernetes/ConfigMap.yml +++ b/deploy/examples/kubernetes/ConfigMap.yml @@ -32,7 +32,7 @@ data: POSTFIX_RELAYHOST: "[smtp.gmail.com]:587" POSTFIX_ALLOWED_SENDER_DOMAINS: "openwisp.org gmail.com" POSTFIX_MYNETWORKS: "10.0.0.0/8" - DJANGO_FREERADIUS_ALLOWED_HOSTS: "10.0.0.0/8" + OPENWISP_RADIUS_FREERADIUS_ALLOWED_HOSTS: "10.0.0.0/8" POSTFIX_RELAYHOST_USERNAME: "example@gmail.com" POSTFIX_RELAYHOST_PASSWORD: "example" DB_NAME: openwisp_db diff --git a/docs/ENV.md b/docs/ENV.md index 84b53223..3d0026c6 100644 --- a/docs/ENV.md +++ b/docs/ENV.md @@ -101,7 +101,7 @@ Additionally, you can search for the following: - **Default:** - **Example:** .openwisp.org,.example.org,www.example.com -### `DJANGO_FREERADIUS_ALLOWED_HOSTS` +### `OPENWISP_RADIUS_FREERADIUS_ALLOWED_HOSTS` - **Explanation:** Default IP address or subnet of your freeradius instance. - **Valid Values:** List(IP adress) | Subnet diff --git a/images/common/openwisp/settings.py b/images/common/openwisp/settings.py index b61bc3fb..2482761d 100644 --- a/images/common/openwisp/settings.py +++ b/images/common/openwisp/settings.py @@ -43,7 +43,7 @@ ] + os.environ['DJANGO_ALLOWED_HOSTS'].split(',') OPENWISP_RADIUS_FREERADIUS_ALLOWED_HOSTS = os.environ[ - 'DJANGO_FREERADIUS_ALLOWED_HOSTS' + 'OPENWISP_RADIUS_FREERADIUS_ALLOWED_HOSTS' ].split(',') AUTH_USER_MODEL = 'openwisp_users.User' diff --git a/images/openwisp_base/Dockerfile b/images/openwisp_base/Dockerfile index cf06e680..bdc8ed40 100644 --- a/images/openwisp_base/Dockerfile +++ b/images/openwisp_base/Dockerfile @@ -128,7 +128,7 @@ ENV DASHBOARD_APP_SERVICE=dashboard \ EMAIL_DJANGO_DEFAULT=example@example.org \ DJANGO_LOG_LEVEL=ERROR \ DJANGO_LANGUAGE_CODE=en-gb \ - DJANGO_FREERADIUS_ALLOWED_HOSTS=172.18.0.0/16 \ + OPENWISP_RADIUS_FREERADIUS_ALLOWED_HOSTS=172.18.0.0/16 \ DJANGO_X509_DEFAULT_CERT_VALIDITY=1825 \ DJANGO_X509_DEFAULT_CA_VALIDITY=3650 \ DJANGO_SECRET_KEY=DEFAULT_BAD_KEY \