Skip to content

Added SWAG config patch script #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Root-Core
Copy link

@Root-Core Root-Core commented Apr 13, 2025

This is a quick and dirty script, that patches the config of SWAG. Currently there are several issues, that aren't documented in the guide:

  • Changing ports require config updates
  • Some default ports differ from what SWAG expects
  • If your setup relies on gluetun (full VPN setup), you need to rewire all requests to the gluetun container
  • Also it automates enabling authelia, if desired

We just read the env from the file and copy the samples patched to actual conf files.

(set -a && source 'docker-compose.env' && set +a && python3 swag_config_patcher.py)

We may need some documentation in the guide for this, but it solved a lot of headaches for me.

EDIT: Only homarr, portainer, sabnzbd are not reachable now. (111: Connection refused) - Not sure what's the issue here.

EDIT2: portainer is not part of full-vpn_single-yaml and homarr should be fixed.

EDIT3: sabnzbd works if it's port is set to 8080, which is the default port. All other containers use their default ports. This is a bit odd, but I don't know the gluetun workflow. All other containers use their default ports by default.

EDIT4: The gluetun setup should not use configurable ports or set them in each container internally.. https://github.com/qdm12/gluetun-wiki/blob/main/setup/port-mapping.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant