Skip to content

Commit 81b80c1

Browse files
committed
Don't patch ports for local network
1 parent 2bf0e88 commit 81b80c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swag_config_patcher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
text = file.read_text()
4444

4545
# Patch ports
46-
if port:
46+
if port and not container in stack_network:
4747
text = re.sub(r'set \$upstream_port \d{2,5};', f'set $upstream_port {port};', text)
4848
# Activate authelia
4949
if use_authelia:

0 commit comments

Comments
 (0)