Skip to content

Commit 65ea162

Browse files
committed
5282: Restored some docker compose stuff
1 parent 3a78c3b commit 65ea162

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.docker/templates/default.conf.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ server {
1212
real_ip_header X-Forwarded-For;
1313

1414
___location / {
15+
# We are co-hosting with the legacy EventDB, so this app is hosted under '/api/v2/' (.env::APP_PATH_PREFIX)
16+
# This is configured for Symfony in both 'api_platform.prefix' and 'framework.assets.base_path'. However
17+
# Symfony still installs assets in the root path so we need to rewrite the uri to remove '/api/v2/'.
18+
rewrite ^${APP_PATH_PREFIX}/(.*) /$1 break;
19+
1520
# try to serve file directly, fallback to index.php
1621
try_files $uri /index.php$is_args$args;
1722
}

docker-compose.override.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
environment:
2424
APP_PATH_PREFIX: ${APP_PATH_PREFIX}
2525
labels:
26-
# HTTPS config - uncomment to enable redirect from :80 to :443
26+
# HTTPS config
2727
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
2828
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
2929
# Scope hosting by path prefix to allow shared hosting with legacy EventDB

0 commit comments

Comments
 (0)