You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Feat] Allow override of GUI's listen address from Syncthing
configuration file or environs
- Replace hardcoded default listen address `0.0.0.0:8384` with
1. Environment variables lookup
a. From `STGUIADDRESS` (eg: `0.0.0.0:4242`)
b. From `STGUIHOST` (eg: `0.0.0.0`) and/or STGUIPORT (eg: `4242`)
2. Static configuration lookup from Syncthing config.xml
3. Default to `0.0.0.0` and `8384`
sqm
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,8 @@ services:
78
78
- PUID=1000
79
79
- PGID=1000
80
80
- TZ=Etc/UTC
81
+
- STGUIHOST=0.0.0.0 # optional
82
+
- STGUIPORT=8384 # optional
81
83
volumes:
82
84
- /path/to/syncthing/config:/config
83
85
- /path/to/data1:/data1
@@ -99,6 +101,9 @@ docker run -d \
99
101
-e PUID=1000 \
100
102
-e PGID=1000 \
101
103
-e TZ=Etc/UTC \
104
+
-e STGUIADDRESS="0.0.0.0:8384" `#optional` \
105
+
-e STGUIHOST=0.0.0.0 `#optional` \
106
+
-e STGUIPORT=8384 `#optional` \
102
107
-p 8384:8384 \
103
108
-p 22000:22000/tcp \
104
109
-p 22000:22000/udp \
@@ -121,9 +126,12 @@ Containers are configured using parameters passed at runtime (such as those abov
121
126
|`-p 22000:22000/tcp`| Listening port (TCP) |
122
127
|`-p 22000:22000/udp`| Listening port (UDP) |
123
128
|`-p 21027:21027/udp`| Protocol discovery |
124
-
|`-e PUID=1000`| for UserID - see below for explanation |
125
-
|`-e PGID=1000`| for GroupID - see below for explanation |
126
-
|`-e TZ=Etc/UTC`| specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
129
+
|`-e PUID=1000`| For UserID - see below for explanation |
130
+
|`-e PGID=1000`| For GroupID - see below for explanation |
131
+
|`-e TZ=Etc/UTC`| Specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
132
+
|`-e STGUIADDRESS=0.0.0.0:8384`| Specify the application WebUI service listening address (default to `0.0.0.0:8384` if not overrided by env nor config.xml). Priority: env.STGUIADDRESS -> env.STGUIHOST/env.STGUIPORT -> config.xml -> default. |
133
+
|`-e STGUIHOST=0.0.0.0`| Specify the application WebUI service listening host (default to `0.0.0.0` if not overrided by env nor config.xml). Priority: env.STGUIADDRESS -> env.STGUIHOST/env.STGUIPORT -> config.xml -> default. |
134
+
|`-e STGUIPORT=8384`| Specify the application WebUI service listening port (default to `8384` if not overrided by env nor config.xml). Priority: env.STGUIADDRESS -> env.STGUIHOST/env.STGUIPORT -> config.xml -> default. |
127
135
|`-v /config`| Configuration files. |
128
136
|`-v /data1`| Data1 |
129
137
|`-v /data2`| Data2 |
@@ -289,7 +297,7 @@ docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset
289
297
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.
290
298
291
299
## Versions
292
-
300
+
***06.12.25:** - [Feat] Allow override of GUI's listen address from Syncthing configuration file or environs
293
301
* **16.08.25:** - Rebase to Alpine 3.22.
294
302
* **13.08.25:** - Use double-dash long options for syncthing v2.0.0.
0 commit comments