File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ server {
12
12
real_ip_header X-Forwarded-For;
13
13
14
14
___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
+
15
20
# try to serve file directly, fallback to index.php
16
21
try_files $uri /index.php$is_args$args;
17
22
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ services:
23
23
environment :
24
24
APP_PATH_PREFIX : ${APP_PATH_PREFIX}
25
25
labels :
26
- # HTTPS config - uncomment to enable redirect from :80 to :443
26
+ # HTTPS config
27
27
- " traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
28
28
- " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
29
29
# Scope hosting by path prefix to allow shared hosting with legacy EventDB
You can’t perform that action at this time.
0 commit comments