Add Traefik IngressRoute with stripPrefix middleware
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user