Skip to content

Commit

Permalink
Merge pull request #36 from citysciencelab/protocol-env-keycloak
Browse files Browse the repository at this point in the history
Add KEYCLOAK_PROTOCOL env variable
  • Loading branch information
KaiVolland authored Sep 3, 2024
2 parents f75f490 + b6366fc commit 28a07ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ IMAGE_TAG=1.1.0
KEYCLOAK_USER=admin
KEYCLOAK_PASSWORD=admin
KEYCLOAK_HOST=<<INSERT_YOUR_IP>>
KEYCLOAK_PROTOCOL=http

REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
2 changes: 1 addition & 1 deletion src/ump/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

app.register_blueprint(api)

keycloak_openid = KeycloakOpenID(server_url=f"http://{env['KEYCLOAK_HOST']}/auth/",
keycloak_openid = KeycloakOpenID(server_url=f"{env['KEYCLOAK_PROTOCOL']}://{env['KEYCLOAK_HOST']}/auth/",
client_id="ump-client",
realm_name="UrbanModelPlatform")

Expand Down

0 comments on commit 28a07ff

Please sign in to comment.