feat: auto add ssh forward ports

This commit is contained in:
2023-01-01 18:02:13 +01:00
parent d5fc16a4cc
commit 98b770afa1
2 changed files with 18 additions and 0 deletions

View File

@@ -43,6 +43,8 @@ if __name__ == "__main__":
with open("/etc/nginx/stream_include.conf", "w") as f:
for vmo in vmList:
[ f.write(c) for c in vmo.dumpStreamComponents()]
for vmo in set(vmList):
[ f.write(c) for c in vmo.dumpSshFowardsNginx()]
with open("/etc/nginx/http_include.conf", "w") as f:
for vmo in vmList: