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.