mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
Add environment variable to include Sub-Path in resolve.js.
This commit is contained in:
@@ -35,6 +35,7 @@ docker-compose:
|
||||
environment:
|
||||
# all the other env
|
||||
- SCRIPT_NAME=/<sub path>
|
||||
- JS_REVERSE_SCRIPT_PREFIX=/<sub path>/
|
||||
- STATIC_URL=/<www path>/static/
|
||||
- MEDIA_URL=/<www path>/media/
|
||||
labels:
|
||||
@@ -56,4 +57,4 @@ apache:
|
||||
|
||||
I used two paths `<sub path>` and `<www path>` for simplicity. In my case I have `<sub path> = recipes` and `<www path> = serve/recipes`. One could also change the matching rules of traefik to have everything under one path.
|
||||
|
||||
I left out the TLS config in this example for simplicty.
|
||||
I left out the TLS config in this example for simplicty.
|
||||
|
||||
Reference in New Issue
Block a user