-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sonarcloud): move DATABASE_URL default to .env.example
fix https://rules.sonarsource.com/secrets/RSPEC-6698/ by not using a hardcoded DATABASE_URL in compose.yaml or settings.py but having a default value for it in `.env.example` file also: - combine `.env.keycloak.example` and `docker-compose.env.example` into `.env.example` - make Docker Compose use `.env` for environment variables - update README related to environment variable files - add more .env.* files explicitly into .gitignore - fix comment in docker-entrypoint.sh (was the other way around) refs KK-1417
- Loading branch information
1 parent
b7d1645
commit 0461678
Showing
7 changed files
with
47 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
SECRET_KEY= | ||
CORS_ORIGIN_ALLOW_ALL=1 | ||
APPLY_MIGRATIONS=1 | ||
ADD_DEFAULT_LANGUAGES=1 | ||
DEBUG=1 | ||
DATABASE_URL=postgres://kukkuu:kukkuu@localhost:5434/kukkuu | ||
# Values in DATABASE_* and POSTGRES_* variables must match! | ||
# DATABASE_URL is used by Django | ||
# DATABASE_HOST is used by docker-entrypoint.sh | ||
# POSTGRES_* variables are used by the Postgres Docker container | ||
# i.e. DATABASE_URL should be: | ||
# postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB} | ||
# or optionally contain a port number e.g. ":5434" after the host | ||
# Database settings for Docker + Docker compose based local development: | ||
DATABASE_URL=postgres://kukkuu:[email protected]/kukkuu | ||
DATABASE_HOST=kukkuu-db.helsinki | ||
# Database settings for non-Docker local development: | ||
# DATABASE_URL=postgres://kukkuu:kukkuu@localhost/kukkuu | ||
# DATABASE_HOST=localhost | ||
POSTGRES_USER=kukkuu | ||
POSTGRES_PASSWORD=kukkuu | ||
POSTGRES_DB=kukkuu | ||
SKIP_DATABASE_CHECK=0 | ||
ALLOWED_HOSTS=* | ||
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001,http://localhost:3002 | ||
CORS_ORIGIN_ALLOW_ALL=True | ||
ALLOWED_HOSTS=* | ||
# For Keycloak test environment authentication service: | ||
TOKEN_AUTH_AUTHSERVER_URL=https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus | ||
# For local Tunnistamo authentication service: | ||
# TOKEN_AUTH_AUTHSERVER_URL=http://tunnistamo-backend:8000/openid | ||
# For local Kukkuu API: | ||
TOKEN_AUTH_ACCEPTED_AUDIENCE=kukkuu-api-dev,profile-api-test | ||
# For test env Kukkuu API: | ||
|
@@ -15,9 +37,10 @@ GDPR_API_QUERY_SCOPE=gdprquery | |
GDPR_API_DELETE_SCOPE=gdprdelete | ||
GDPR_API_AUTHORIZATION_FIELD=authorization.permissions.scopes | ||
HELUSERS_BACK_CHANNEL_LOGOUT_ENABLED=True | ||
HELUSERS_PASSWORD_LOGIN_DISABLED=False | ||
KUKKUU_HASHID_SALT=abcdefg123456 | ||
KUKKUU_TICKET_VERIFICATION_URL=http://localhost:3000/ticket-verification-endpoint/{reference_id} | ||
MAIL_MAILGUN_KEY | ||
MAIL_MAILGUN_KEY= | ||
MAIL_MAILGUN_DOMAIN=hel.fi | ||
MAIL_MAILGUN_API=https://api.eu.mailgun.net/v3 | ||
KUKKUU_NOTIFICATIONS_SHEET_ID=1TkdQsO50DHOg5pi1JhzudOL1GKpiK-V2DCIoAipKj-M | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters