Skip to content

Commit 71254aa

Browse files
committed
2023-10-26 NextCloud - master branch - PR 1 of 2
Adds TZ to NextCloud (which now seems to support timezones). Adds port mapping 9343:443 to reserve 9343 for HTTPS access in the IOTstack context. Makes NextCloud_DB container's TZ variable conform with current syntax. Numerous behavioural changes are apparent in current versions of NextCloud. In particular, these problems seem to have gone away: 1. Mal-formed URLs and the requirement to pick an access method and stick to it during setup. 2. The "Access through untrusted domains" issue. 3. Dislike of being reached via a a URL containing a DNS alias (CNAME) record. Appropriate changes to the documentation will be pushed to SensorsIot#737 shortly. Signed-off-by: Phill Kelley <[email protected]>
1 parent 2cc7488 commit 71254aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.templates/nextcloud/service.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ nextcloud:
33
image: nextcloud
44
restart: unless-stopped
55
environment:
6+
- TZ=${TZ:-Etc/UTC}
67
- MYSQL_HOST=nextcloud_db
78
- MYSQL_PASSWORD=%randomMySqlPassword%
89
- MYSQL_DATABASE=nextcloud
910
- MYSQL_USER=nextcloud
1011
ports:
1112
- "9321:80"
13+
- "9343:443"
1214
volumes:
1315
- ./volumes/nextcloud/html:/var/www/html
1416
depends_on:
@@ -22,7 +24,7 @@ nextcloud_db:
2224
build: ./.templates/mariadb/.
2325
restart: unless-stopped
2426
environment:
25-
- TZ=Etc/UTC
27+
- TZ=${TZ:-Etc/UTC}
2628
- PUID=1000
2729
- PGID=1000
2830
- MYSQL_ROOT_PASSWORD=%randomPassword%

0 commit comments

Comments
 (0)