Skip to content

Commit 444bd2f

Browse files
fix: docker-compose.env.example & README.md to work out of the box
refs KK-1379
1 parent 0a01103 commit 444bd2f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- [Installing Python requirements](#installing-python-requirements)
1616
- [Database](#database)
1717
- [Notification import](#notification-import)
18-
- [Daily running, Debugging](#daily-running-debugging)
18+
- [Daily running, Debugging](#daily-running-debugging)
1919
- [Keeping Python requirements up to date](#keeping-python-requirements-up-to-date)
2020
- [Code linting & formatting](#code-linting--formatting)
2121
- [Pre-commit hooks](#pre-commit-hooks)
@@ -95,7 +95,7 @@ If you do not have a super user / admin to administrate the API yet, you can cre
9595
- `docker compose run django python manage.py add_admin_user -u admin -p admin -e admin@example.com`
9696
- In case you don't have a running container yet
9797

98-
The project is now running at http://localhost:8081
98+
The project is now running at http://localhost:8081 and using public Keycloak test environment for authentication.
9999

100100
### Development without Docker
101101

docker-compose.env.example

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ DEBUG=1
55
DATABASE_URL=postgres://kukkuu:kukkuu@localhost:5434/kukkuu
66
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001,http://localhost:3002
77
CORS_ORIGIN_ALLOW_ALL=True
8-
# TOKEN_AUTH_AUTHSERVER_URL=https://tunnistamo.test.kuva.hel.ninja/openid
9-
TOKEN_AUTH_AUTHSERVER_URL=http://tunnistamo-backend:8000/openid
8+
# For Keycloak test environment authentication service:
9+
TOKEN_AUTH_AUTHSERVER_URL=https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus
10+
# For local Tunnistamo authentication service:
11+
# TOKEN_AUTH_AUTHSERVER_URL=http://tunnistamo-backend:8000/openid
12+
TOKEN_AUTH_ACCEPTED_AUDIENCE=kukkuu-api-dev,profile-api-test
13+
TOKEN_AUTH_ACCEPTED_SCOPE_PREFIX=
14+
TOKEN_AUTH_REQUIRE_SCOPE_PREFIX=False
15+
GDPR_API_QUERY_SCOPE=gdprquery
16+
GDPR_API_DELETE_SCOPE=gdprdelete
17+
GDPR_API_AUTHORIZATION_FIELD=authorization.permissions.scopes
18+
HELUSERS_BACK_CHANNEL_LOGOUT_ENABLED=True
1019
KUKKUU_HASHID_SALT=ULGd5YeRv6yVtvoj
1120
KUKKUU_TICKET_VERIFICATION_URL=http://localhost:3000/ticket-verification-endpoint/{reference_id}
1221
MAIL_MAILGUN_KEY=

0 commit comments

Comments
 (0)