Skip to content

Commit

Permalink
[#230] Add configuration of record manager server within deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Oct 7, 2024
1 parent d583ddd commit 1731b82
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions deploy/internal-auth/.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ FORMGEN_SERVICE_URL=http://s-pipes-engine:8080/s-pipes/service?_pId=clone-form
RECORD_MANAGER_APP_TITLE=Record Manager

LANGUAGE=en

# Internal address where record manager server runs which should be accessible from inside of docker. Use `http://host.docker.internal` to access http://localhost of the host computer.
#INTERNAL_RECORD_MANAGER_SERVER_SERVICE=http://host.docker.internal:8080
3 changes: 3 additions & 0 deletions deploy/keycloak-auth/.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ FORMGEN_SERVICE_URL=http://s-pipes-engine:8080/s-pipes/service?_pId=clone-form
RECORD_MANAGER_APP_TITLE=Record Manager

LANGUAGE=en

# Internal address where record manager server runs which should be accessible from inside of docker. Use `http://host.docker.internal` to access http://localhost of the host computer.
#INTERNAL_RECORD_MANAGER_SERVER_SERVICE=http://host.docker.internal:8080
2 changes: 2 additions & 0 deletions deploy/keycloak-auth/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ services:
APP_ROOT_PATH: "${APP_ROOT_PATH:-}"
RECORD_MANAGER_PATH: "${RECORD_MANAGER_PATH:-/record-manager}"
ANALYTICS_PATH: "${ANALYTICS_PATH:-/statistics}"
INTERNAL_RECORD_MANAGER_SERVER_SERVICE: "${INTERNAL_RECORD_MANAGER_SERVER_SERVICE:-http://record-manager-server:8080}"

volumes:
- ./nginx/nginx.conf:/etc/nginx/templates/nginx.conf.template:ro
- ../shared/nginx/error.html:/usr/share/nginx/html/error.html:ro
Expand Down
2 changes: 1 addition & 1 deletion deploy/keycloak-auth/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ http {
}

location /services/record-manager-server/ {
proxy_pass http://record-manager-server:8080/record-manager/; # keep the trailing slash to cut off matched prefix
proxy_pass ${INTERNAL_RECORD_MANAGER_SERVER_SERVICE}/record-manager/; # keep the trailing slash to cut off matched prefix
proxy_cookie_path /record-manager ${APP_ROOT_PATH}/services;
}

Expand Down

0 comments on commit 1731b82

Please sign in to comment.