Add environment variable to include Sub-Path in resolve.js.

This commit is contained in:
Alberto
2021-02-22 19:56:33 +01:00
parent e2b1115b3b
commit bccc41d177
2 changed files with 4 additions and 1 deletions

View File

@@ -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.