fixes
All checks were successful
Publish Docker Image / docker (push) Successful in 1m9s

This commit is contained in:
Lee 2024-08-28 02:46:46 +01:00
parent ee7a0b7f63
commit 304451ef7c
2 changed files with 4 additions and 1 deletions

View File

@ -39,4 +39,4 @@ class AddSubPathCommand(Command):
traefikConfig.addSubPathRouter(subPathName, domain, path, serviceHost)
traefikConfig.save()
print(f"Access your service at http://{domain}")
print(f"Access your service at http://{domain}{path}")

View File

@ -75,6 +75,9 @@ class TraefikConfig:
return name in self.configYml["http"]["middlewares"]
def addPathRewrite(self, name, path):
if not path.endswith("/"): # Add trailing slash
path += "/"
self.configYml["http"]["middlewares"][name] = {
"stripPrefix": {
"prefixes": [path]