mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
fix caddy config
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
08ff51c482
commit
1dedc5f282
4 changed files with 3 additions and 6 deletions
|
|
@ -22,9 +22,6 @@
|
|||
# Others
|
||||
import /mnt/data/caddy-imports/*
|
||||
|
||||
# Nextcloud
|
||||
import /mnt/data/nextcloud
|
||||
|
||||
# TLS options
|
||||
tls {
|
||||
issuer acme {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ FROM httpd:2.4.57-alpine3.17
|
|||
|
||||
COPY --from=caddy /usr/bin/caddy /usr/bin/caddy
|
||||
|
||||
COPY --chown=www-data:www-data Caddyfile /Caddyfile
|
||||
COPY --chown=33:33 Caddyfile /Caddyfile
|
||||
COPY --chmod=664 nextcloud.conf /usr/local/apache2/conf/nextcloud.conf
|
||||
COPY --chmod=664 nextcloud /nextcloud
|
||||
COPY --chmod=664 caddy-imports/* /caddy-imports/
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Nextcloud
|
||||
route {
|
||||
route /* {
|
||||
rewrite /.well-known/carddav /remote.php/dav
|
||||
rewrite /.well-known/caldav /remote.php/dav
|
||||
header Strict-Transport-Security max-age=31536000;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ fi
|
|||
echo "$CADDYFILE" > /Caddyfile
|
||||
|
||||
# Overwrite nextcloud conf
|
||||
cat /nextcloud > /mnt/data/nextcloud
|
||||
cat /nextcloud > /mnt/data/caddy-imports/nextcloud
|
||||
|
||||
# Fix the Caddyfile format
|
||||
caddy fmt --overwrite /Caddyfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue