fixes
All checks were successful
Publish Docker Image / docker (push) Successful in 58s

This commit is contained in:
Lee
2024-08-28 02:53:53 +01:00
parent 304451ef7c
commit 6430dc5bc4
3 changed files with 33 additions and 2 deletions

View File

@ -13,16 +13,16 @@ class AddSubPathCommand(Command):
router = args[0]
domain = args[1]
subPathName = args[0] + "-sub-path-" + domain
path = args[2]
serviceHost = args[3]
subPathName = "strip-" + router + "-" + path + "-prefix"
# Fix the path
if path.startswith("/") == False:
path = "/" + path
if traefikConfig.hasPathRewrite(subPathName):
print(f"Path rewrite already exists for \"{router}\"")
print(f"Sub path for \"{router}\" already exists")
return
if traefikConfig.hasRouter(router) == False: