feat(stacks): migrate traefik

This commit is contained in:
2026-08-14 06:21:01 +02:00
parent 9a2722def3
commit 10fff06464
8 changed files with 211 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
[http]
[http.routers]
[http.routers.opytexorg]
entryPoints = ["web-secure"]
service = "opytexorg"
middlewares = ["opytexorgstripprefix@file", "opytexorgindex@file", "opytexerror@file"]
rule = "Host(`opytex.org`)"
[http.routers.opytexorg.tls]
certResolver = "letsencrypt"
[[http.routers.opytexorg.tls.domains]]
main = "opytex.org"
[http.services]
[http.services.opytexorg.loadBalancer]
[[http.services.opytexorg.loadBalancer.servers]]
url = "http://minio:9000"
[http.middlewares]
[http.middlewares.opytexorgindex.replacePathRegex]
regex = "^(.*)/$"
replacement = "$1/index.html"
[http.middlewares.opytexorgstripprefix.addPrefix]
prefix = "/opytex.org"
[http.middlewares.opytexerror.errors]
status = ["400-499", "500-599"]
service = "opytexorg@file"
query = "opytex.org/404.html"