Add Traefik IngressRoute with stripPrefix middleware

This commit is contained in:
2026-07-12 00:56:36 +02:00
parent 4d5c641d45
commit a7c3968227
4 changed files with 32 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ docker build -t m1730-scale:latest .
kubectl apply -f k8s/
```
NPM should proxy `https://works.baumann.gr/M1730-generator/` `http://m1730-generator/` **with the prefix stripped** (trailing slash on `proxy_pass`). The frontend uses a relative `fetch('generate', ...)` URL so it works correctly under any subpath.
`k8s/ingress.yaml` adds a Traefik `IngressRoute` for `works.baumann.gr/M1730-generator` and a `stripPrefix` middleware. Adjust `certResolver` in the file if your Traefik instance uses a different name.
## Editing SVG files directly