Skip to content

Commit

Permalink
[change] Replaced DJANGO_FREERADIUS_ALLOWED_HOSTS #287
Browse files Browse the repository at this point in the history
With OPENWISP_RADIUS_FREERADIUS_ALLOWED_HOSTS.

Closes #287
  • Loading branch information
nemesifier committed May 22, 2024
1 parent 8caab55 commit 09dc3f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/examples/kubernetes/ConfigMap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]"
POSTFIX_RELAYHOST_PASSWORD: "example"
DB_NAME: openwisp_db
Expand Down
2 changes: 1 addition & 1 deletion docs/ENV.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Additionally, you can search for the following:
- **Default:** <your-dashboard-domains>
- **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
Expand Down
2 changes: 1 addition & 1 deletion images/common/openwisp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion images/openwisp_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ENV DASHBOARD_APP_SERVICE=dashboard \
[email protected] \
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 \
Expand Down

0 comments on commit 09dc3f2

Please sign in to comment.