Closed wansyu closed 6 months ago
I am a bot, here are the test results for this PR: https://ci-tests.linuxserver.io/lspipepr/syncthing/v1.27.1-pkg-a42c0aec-dev-a0949c1c55e7de99f5a7ecf4db8626e255ecda5d-pr-70/index.html https://ci-tests.linuxserver.io/lspipepr/syncthing/v1.27.1-pkg-a42c0aec-dev-a0949c1c55e7de99f5a7ecf4db8626e255ecda5d-pr-70/shellcheck-result.xml | Tag | Passed |
---|---|---|
amd64-v1.27.1-pkg-a42c0aec-dev-a0949c1c55e7de99f5a7ecf4db8626e255ecda5d-pr-70 | ✅ | |
arm64v8-v1.27.1-pkg-a42c0aec-dev-a0949c1c55e7de99f5a7ecf4db8626e255ecda5d-pr-70 | ✅ |
This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
@wansyu I posted on linuxserver discord asking about this and got the following response:
I don't particularly see an issue with making the port configurable for use in host networking mode, though I'm not really clear why it would be necessary, but we wouldn't make those changes to the Dockerfile, and we'd want to pick a clearer env name than just PORT
This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.
This pull request is locked due to inactivity
Description:
Add optional configurable WebUI PORT.
Benefits of this PR and context:
The current image cannot change the internal port of WebUI. This commit adds the PORT environment variable to avoid port conflicts that may be caused by hardcoded port when using the host network.
How Has This Been Tested?
I built an image from a Dockerfile and used it to create and run 2 containers simultaneously on the same host. Both Syncthing instances are successfully accessible through the GUI on the assigned ports, local discovery functions properly, and the instances are able to connect directly to other Syncthing instances on the local network.
Source / References:
[FEAT] Add option to set listen address for GUI https://github.com/linuxserver/docker-syncthing/issues/65