This repository was archived by the owner on Jan 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
root/etc/services.d/domoticz Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ docker create \
64
64
-e PUID=1000 \
65
65
-e PGID=1000 \
66
66
-e TZ=Europe/London \
67
+ -e WEBROOT=domoticz `#optional` \
67
68
-p 8080:8080 \
68
69
-p 6144:6144 \
69
70
-p 1443:1443 \
@@ -101,6 +102,7 @@ services:
101
102
- PUID=1000
102
103
- PGID=1000
103
104
- TZ=Europe/London
105
+ - WEBROOT=domoticz #optional
104
106
volumes:
105
107
- <path to data>:/config
106
108
ports:
@@ -124,6 +126,7 @@ Container images are configured using parameters passed at runtime (such as thos
124
126
| ` -e PUID=1000 ` | for UserID - see below for explanation |
125
127
| ` -e PGID=1000 ` | for GroupID - see below for explanation |
126
128
| ` -e TZ=Europe/London ` | Specify a timezone to use EG Europe/London. |
129
+ | ` -e WEBROOT=domoticz ` | Sets webroot to domoticz for usage with subfolder reverse proxy. Not needed unless reverse proxying. |
127
130
| ` -v /config ` | Where Domoticz stores config files and data. |
128
131
| ` --device <path to device> ` | For passing through USB devices. |
129
132
@@ -190,6 +193,7 @@ Below are the instructions for updating containers:
190
193
191
194
## Versions
192
195
196
+ * ** 30.03.19:** - Add env variable to set webroot.
193
197
* ** 23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
194
198
* ** 19.02.19:** - Fix branch for version logic.
195
199
* ** 11.02.19:** - Add pipeline logic and multi arch.
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ param_devices:
45
45
cap_add_param : false
46
46
47
47
# optional container parameters
48
- opt_param_usage_include_env : false
48
+ opt_param_usage_include_env : true
49
+ opt_param_env_vars :
50
+ - { env_var: "WEBROOT", env_value: "domoticz", desc: "Sets webroot to domoticz for usage with subfolder reverse proxy. Not needed unless reverse proxying." }
49
51
opt_param_usage_include_vols : false
50
52
opt_param_usage_include_ports : false
51
53
opt_param_device_map : false
@@ -73,6 +75,7 @@ app_setup_block: |
73
75
74
76
# changelog
75
77
changelogs :
78
+ - { date: "30.03.19:", desc: "Add env variable to set webroot." }
76
79
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
77
80
- { date: "19.02.19:", desc: "Fix branch for version logic." }
78
81
- { date: "11.02.19:", desc: "Add pipeline logic and multi arch." }
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
+
3
+ IFS=" " read -r -a RUN_ARRAY <<< "$WEBROOT"
4
+
2
5
exec \
3
6
s6-setuidgid abc /var/lib/domoticz/domoticz \
4
7
-sslwww 1443 \
5
8
-sslcert /config/keys/server_cert.pem \
6
9
-userdata /config/ \
7
- -dbase /config/domoticz.db
10
+ -dbase /config/domoticz.db \
11
+ -webroot "${RUN_ARRAY[@]}"
You can’t perform that action at this time.
0 commit comments