Just do plain path replacement

This commit is contained in:
Jake Howard 2020-11-25 11:38:47 +00:00
parent a81e2793f8
commit 2b291548f9
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -21,8 +21,12 @@ services:
- traefik.http.routers.plausible-bare.rule=Host(`elbisualp.theorangeone.net`)
- traefik.http.routers.plausible-bare.tls.certresolver=le
- traefik.http.routers.plausible-bare.service=plausible-plausible
- traefik.http.middlewares.plausible-bare.replacepath.path=/js/plausible.js # https://github.com/plausible/analytics/pull/340
- traefik.http.routers.plausible-bare.middlewares=compress@file,plausible-bare
# https://github.com/plausible/analytics/pull/340
- "traefik.http.middlewares.plausible-index.replacepathregex.regex=/js/index.js"
- traefik.http.middlewares.plausible-index.replacepathregex.replacement=/js/plausible.js
- traefik.http.routers.plausible-bare.middlewares=compress@file,plausible-index
environment:
- SECRET_KEY_BASE={{ secret_key }}
- SIGNING_SALT={{ signing_salt }}