Skip to content

Commit

Permalink
[New] Add .env configuration for keycloak authorization example
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Dec 12, 2023
1 parent 8d5b66a commit 6ef41e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .env.keycloak-auth
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RECORD_MANAGER_API_URL=http://localhost:1235/record-manager/services/record-manager-server
RECORD_MANAGER_APP_TITLE=Record Manager
RECORD_MANAGER_DEV_SERVER_PORT=3000
RECORD_MANAGER_PROD_SERVER_PORT=8080
RECORD_MANAGER_LANGUAGE=cs
RECORD_MANAGER_NAVIGATOR_LANGUAGE=true
RECORD_MANAGER_BASENAME=/
RECORD_MANAGER_EXTENSIONS=supplier
RECORD_MANAGER_AUTHENTICATION=oidc
RECORD_MANAGER_AUTH_SERVER_URL=http://localhost:1235/record-manager/services/auth/realms/record-manager
RECORD_MANAGER_AUTH_CLIENT_ID=record-manager
2 changes: 1 addition & 1 deletion deploy/keycloak-auth/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#RECORD_MANAGER_ROOT_PATH=/record-manager-example

# Prefix for name of all docker containers
RECORD_SET_NAME=iauth-example
RECORD_SET_NAME=kauth-example

# Host machine port that provides main entrypoint for the application. The application will be locally accessible at http://localhost:$INTERNAL_HOST_PORT/$RECORD_MANAGER_ROOT_PATH (by default it is set to "1235")
#INTERNAL_HOST_PORT=1235
Expand Down
2 changes: 1 addition & 1 deletion deploy/keycloak-auth/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ services:
LANGUAGE: "${LANGUAGE:-en}"
NAVIGATOR_LANGUAGE: "false"
BASENAME: "${RECORD_MANAGER_ROOT_PATH:-/record-manager}"
EXTENSION: "${RECORD_MANAGER_EXTENSIONS:-supplier}"
AUTHENTICATION: "oidc"
AUTH_SERVER_URL: "${PUBLIC_ORIGIN:-http://localhost:${INTERNAL_HOST_PORT:-1235}}${RECORD_MANAGER_ROOT_PATH:-/record-manager}/services/auth/realms/record-manager"
AUTH_CLIENT_ID: "record-manager"
EXTENSION: "${RECORD_MANAGER_EXTENSIONS:-supplier}"

record-manager-server:
image: ghcr.io/kbss-cvut/kbss-cvut/record-manager:latest
Expand Down

0 comments on commit 6ef41e6

Please sign in to comment.