Skip to content

Commit

Permalink
Update ++api++ vhm to handle cases with ++api++/++api++
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Sep 13, 2023
1 parent 220dfd7 commit 7fe259d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devops/stacks/plone.org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ services:
### Authentication
- traefik.http.middlewares.ploneorg-backend-auth.basicauth.users=ploneorg:$$apr1$$SAOhBRqM$$HqoYLlr//h7PfUWidoFg//
### backend ++api++ VHM
- "traefik.http.middlewares.ploneorg-vhm-cleanup.replacepathregex.regex=^/((\\+\\+api\\+\\+\/){1,})($$|.*)"
- "traefik.http.middlewares.ploneorg-vhm-cleanup.replacepathregex.replacement=/VirtualHostBase/https/plone.org/Plone/++api++/VirtualHostRoot/$$3"
- "traefik.http.middlewares.ploneorg-vhm.replacepathregex.regex=^/\\+\\+api\\+\\+($$|/.*)"
- "traefik.http.middlewares.ploneorg-vhm.replacepathregex.replacement=/VirtualHostBase/https/plone.org/Plone/++api++/VirtualHostRoot/$$1"
### backend /ClassicUI VHM
Expand All @@ -65,7 +67,7 @@ services:
- traefik.http.routers.ploneorg-backend.entrypoints=https
- traefik.http.routers.ploneorg-backend.tls=true
- traefik.http.routers.ploneorg-backend.service=ploneorg-backend
- traefik.http.routers.ploneorg-backend.middlewares=gzip,ploneorg-vhm
- traefik.http.routers.ploneorg-backend.middlewares=gzip,ploneorg-vhm-cleanup,ploneorg-vhm
### Plone.org /ClassicUI - protected with basic auth (prevent SEOs from crawl it)
- traefik.http.routers.ploneorg-classicui.rule=Host(`plone.org`) && (PathPrefix(`/ClassicUI`))
- traefik.http.routers.ploneorg-classicui.entrypoints=https
Expand Down

0 comments on commit 7fe259d

Please sign in to comment.