This commit is contained in:
parent
ee7a0b7f63
commit
304451ef7c
@ -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}")
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user