Traefik: services can no longer access assets when stripping first prefix (how to set base url)
from SpiderUnderUrBed@lemmy.zip to homelab@lemmy.ml on 14 Apr 05:37
https://lemmy.zip/post/36319940
from SpiderUnderUrBed@lemmy.zip to homelab@lemmy.ml on 14 Apr 05:37
https://lemmy.zip/post/36319940
apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: strip-first-prefix namespace: default spec: # replacePathRegex: # regex: "^/[^/]+(.*)" # replacement: "$1" stripPrefix: prefixes: #- "/dashboard" #- "/api" - "/gitea" - "/wordpress" - "/vaultwarden" - "/pdns" - "/glance" - "/immich"
So I have a issue. whenever I accessed all of my services via 192.168.1.22/wordpress for example. it forwarded that /wordpress to the actual wordpress domain, leading to page not found, however when i strip the initial proefix, i can access the base page, however, when lets say wordpress wants any css or assets, it will look at 192.168.1.22/assets which wont work, so basically, I need a way for sort of, emulate the url paths, so it wont take actual queries to places that dont exist and tries to access resources the incorrect way, i know siteURL exists for WP, but i want a catchall solution which helps my other services.
threaded - newest
A catchall solution doesn’t exist, which is why most services simply tell you to put them on a separate subdomain