Compare commits

..

12 Commits

Author SHA1 Message Date
Simon L
f4140e1102 increase to 5.2.2
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-26 11:45:39 +02:00
Simon L
59569597f7 Merge pull request #2599 from nextcloud/nextcloud-container-update
Nextcloud update
2023-05-26 11:39:37 +02:00
szaimen
4627b9c685 nextcloud-update automated change
Signed-off-by: GitHub <noreply@github.com>
2023-05-26 09:17:53 +00:00
Simon L
a3767038c6 change callitkarma link to web archive one
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-24 11:41:52 +02:00
Simon L
74b3a0d0df Merge pull request #2586 from nextcloud/automated/noid/psalm-baseline-update-1684814969
[Automated] Update psalm-baseline.xml
2023-05-23 09:08:29 +02:00
nextcloud-command
6e2303481d Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2023-05-23 04:09:28 +00:00
Simon L
cf148b6381 fix caddy warning
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-20 18:58:36 +02:00
Simon L
a117c684dd increase to 5.2.1
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-20 18:42:27 +02:00
Simon L
d5937d3990 Merge pull request #2569 from nextcloud/enh/noid/caddy-fix-syntax
caddy - a bugfix and some improvements
2023-05-20 18:41:24 +02:00
Simon L
a620640fa7 fix detail
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-20 18:41:12 +02:00
Simon L
c84091cc0c adjust things as discussed
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-20 18:36:43 +02:00
Simon L
0c945c9516 caddy - use correct syntax for trusted_proxies
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-19 20:58:06 +02:00
12 changed files with 51 additions and 48 deletions

View File

@@ -16,12 +16,49 @@
{$PROTOCOL}://{$NC_DOMAIN}:{$APACHE_PORT} {
# Bundled
import /caddy-imports/*
# Collabora
route /browser/* {
reverse_proxy {$COLLABORA_HOST}:9980
}
route /hosting/* {
reverse_proxy {$COLLABORA_HOST}:9980
}
route /cool/* {
reverse_proxy {$COLLABORA_HOST}:9980
}
# Notify Push
route /push/* {
uri strip_prefix /push
reverse_proxy {$NEXTCLOUD_HOST}:7867
}
# Onlyoffice
route /onlyoffice/* {
uri strip_prefix /onlyoffice
reverse_proxy {$ONLYOFFICE_HOST}:80 {
header_up X-Forwarded-Host {http.request.host}/onlyoffice
header_up X-Forwarded-Proto https
}
}
# Talk
route /standalone-signaling/* {
uri strip_prefix /standalone-signaling
reverse_proxy {$TALK_HOST}:8081
}
# Others
import /mnt/data/caddy-imports/*
# Nextcloud
route {
rewrite /.well-known/carddav /remote.php/dav
rewrite /.well-known/caldav /remote.php/dav
header Strict-Transport-Security max-age=31536000;
reverse_proxy localhost:8000
}
# TLS options
tls {
issuer acme {

View File

@@ -7,8 +7,6 @@ COPY --from=caddy /usr/bin/caddy /usr/bin/caddy
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/
COPY --chmod=664 supervisord.conf /supervisord.conf
COPY --chmod=775 start.sh /start.sh
COPY --chmod=775 healthcheck.sh /healthcheck.sh

View File

@@ -1,10 +0,0 @@
# Collabora
route /browser/* {
reverse_proxy {$COLLABORA_HOST}:9980
}
route /hosting/* {
reverse_proxy {$COLLABORA_HOST}:9980
}
route /cool/* {
reverse_proxy {$COLLABORA_HOST}:9980
}

View File

@@ -1,5 +0,0 @@
# Notify Push
route /push/* {
uri strip_prefix /push
reverse_proxy {$NEXTCLOUD_HOST}:7867
}

View File

@@ -1,8 +0,0 @@
# Onlyoffice
route /onlyoffice/* {
uri strip_prefix /onlyoffice
reverse_proxy {$ONLYOFFICE_HOST}:80 {
header_up X-Forwarded-Host {http.request.host}/onlyoffice
header_up X-Forwarded-Proto https
}
}

View File

@@ -1,5 +0,0 @@
# Talk
route /standalone-signaling/* {
uri strip_prefix /standalone-signaling
reverse_proxy {$TALK_HOST}:8081
}

View File

@@ -1,7 +0,0 @@
# Nextcloud
route /* {
rewrite /.well-known/carddav /remote.php/dav
rewrite /.well-known/caldav /remote.php/dav
header Strict-Transport-Security max-age=31536000;
reverse_proxy localhost:8000
}

View File

@@ -39,15 +39,12 @@ echo "$CADDYFILE" > /Caddyfile
# Change the trusted_proxies in case of reverse proxies
if [ "$APACHE_PORT" != '443' ]; then
CADDYFILE="$(sed 's|# trusted_proxies placeholder|trusted_proxies private_ranges|' /Caddyfile)"
CADDYFILE="$(sed 's|# trusted_proxies placeholder|trusted_proxies static private_ranges|' /Caddyfile)"
else
CADDYFILE="$(sed 's|trusted_proxies private_ranges|# trusted_proxies placeholder|' /Caddyfile)"
CADDYFILE="$(sed 's|trusted_proxies.*private_ranges|# trusted_proxies placeholder|' /Caddyfile)"
fi
echo "$CADDYFILE" > /Caddyfile
# Overwrite nextcloud conf
cat /nextcloud > /mnt/data/caddy-imports/nextcloud
# Fix the Caddyfile format
caddy fmt --overwrite /Caddyfile
@@ -57,6 +54,12 @@ mkdir -p /mnt/data/caddy/
# Add caddy import path
mkdir -p /mnt/data/caddy-imports
# Remove falsely added Nextcloud conf
rm -f /mnt/data/caddy-imports/nextcloud
# Makre sure that the caddy-imports dir is not empty
echo "# empty file so that caddy does not print a warning" > /mnt/data/caddy-imports/empty
# Fix apache startup
rm -f /usr/local/apache2/logs/httpd.pid

View File

@@ -108,7 +108,7 @@ RUN { \
VOLUME /var/www/html
ENV NEXTCLOUD_VERSION 25.0.6
ENV NEXTCLOUD_VERSION 25.0.7
RUN set -ex; \
apk add --no-cache --virtual .fetch-deps \

View File

@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.11.0@c9b192ab8400fdaf04b2b13d110575adc879aa90"/>
<files psalm-version="5.12.0@f90118cdeacd0088e7215e64c0c99ceca819e176"/>

View File

@@ -16,7 +16,7 @@
</header>
<div class="content">
<h1>Nextcloud AIO v5.2.0</h1>
<h1>Nextcloud AIO v5.2.2</h1>
{# Add 2nd tab warning #}
<script type="text/javascript" src="second-tab-warning.js"></script>

View File

@@ -239,7 +239,7 @@ No and it will not be added. Please use a dedicated domain for Nextcloud and set
The recommended way is to set up a local dns-server like a pi-hole and set up a custom dns-record for that domain that points to the internal ip-adddress of your server that runs Nextcloud AIO. Below are some guides:
- https://www.howtogeek.com/devops/how-to-run-your-own-dns-server-on-your-local-network/
- https://help.nextcloud.com/t/need-help-to-configure-internal-access/156075/6
- https://howchoo.com/pi/pi-hole-setup together with https://docs.callitkarma.me/posts/PiHole-Local-DNS/
- https://howchoo.com/pi/pi-hole-setup together with https://web.archive.org/web/20221203223505/https://docs.callitkarma.me/posts/PiHole-Local-DNS/
- https://dockerlabs.collabnix.com/intermediate/networking/Configuring_DNS.html
### How to skip the domain validation?