Skip to content

Commit e8401d2

Browse files
authored
Update README.md
1 parent 61d9550 commit e8401d2

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

README.md

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -30,44 +30,3 @@ The deployment uses Docker Compose to manage the services. Here is an overview o
3030
### Proxy and SSL Certificates
3131

3232
The Nginx service acts as a reverse proxy for the `os2borgerpc-admin` service. It handles SSL termination and forwards requests to the appropriate backend service. The SSL certificates are stored in the `ssl` directory and are mounted into the Nginx container.
33-
34-
## Environment Variables
35-
36-
The following environment variables are used in this setup:
37-
38-
- `DB_HOST`: Database host
39-
- `DB_NAME`: Name of the database
40-
- `DB_USER`: Username for the database
41-
- `DB_PASSWORD`: Password for the database
42-
- `DB_PORT`: Database port
43-
- `ALLOWED_HOSTS`: Allowed hosts
44-
- `CORE_SCRIPT_VERSION_TAG`: Version of the global scripts
45-
- `CORE_SCRIPT_COMMIT_HASH`: Matching commit hash for the selected tagged version of the global scripts
46-
- `PC_IMAGE_RELEASES_URL`: URL for downloading BorgerPC ISO images
47-
- `KIOSK_IMAGE_RELEASES_URL`: URL for downloading Kiosk ISO images
48-
- `DEBUG`: Enable debug mode
49-
- `SECRET_KEY`: Secret key for Django
50-
- `ADMIN_USERNAME`: Username for admin user
51-
- `ADMIN_EMAIL`: Email for admin user
52-
- `ADMIN_PASSWORD`: Password for admin user
53-
- `TIME_ZONE`: Time zone
54-
- `LANGUAGE_CODE`: Language code
55-
- `INITIALIZE_DATABASE`: Initialize the database
56-
- `LOG_LEVEL`: Log level
57-
- `CICERO_URL`: URL for Cicero server
58-
- `CITIZEN_LOGIN_API_VALIDATOR`: Validator for citizen login API
59-
- `POSTGRES_USER`: Username for PostgreSQL
60-
- `POSTGRES_PASSWORD`: Password for PostgreSQL
61-
- `USE_X_FORWARDED_HOST`: Ensure that Django knows it's behind a proxy
62-
- `SECURE_PROXY_SSL_HEADER`: Secure proxy SSL header
63-
64-
## TODO
65-
66-
The entire Django `settings.py` fro os2borgerpc-admin-site is stored as a copy in this project and overwrites the `settings.py` in the image. This is done only to append two lines at the bottom:
67-
68-
```python
69-
# Ensure that Django knows it's behind a proxy
70-
USE_X_FORWARDED_HOST = True
71-
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
72-
73-
This is not a proper approach and should be handled differently. For example, by adding the lines to settings.py in the os2borgerpc-admin-site project.

0 commit comments

Comments
 (0)