mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-31 18:09:20 +08:00
use a different port for Nextcloud internally
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
ff27bd77cc
commit
4e361e3ce2
3 changed files with 7 additions and 2 deletions
|
@ -44,7 +44,7 @@
|
|||
rewrite /.well-known/carddav /remote.php/dav
|
||||
rewrite /.well-known/caldav /remote.php/dav
|
||||
header Strict-Transport-Security max-age=31536000;
|
||||
reverse_proxy localhost:80
|
||||
reverse_proxy localhost:8000
|
||||
}
|
||||
|
||||
# TLS options
|
||||
|
|
|
@ -40,6 +40,10 @@ RUN a2enmod rewrite \
|
|||
|
||||
COPY nextcloud.conf /etc/apache2/sites-available/
|
||||
|
||||
RUN rm /etc/apache2/ports.conf; \
|
||||
sed -s -i -e "s/Include ports.conf//" /etc/apache2/apache2.conf; \
|
||||
sed -i "/^Listen /d" /etc/apache2/apache2.conf
|
||||
|
||||
RUN set -ex; \
|
||||
a2dissite 000-default && \
|
||||
a2dissite default-ssl && \
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<VirtualHost *:80>
|
||||
Listen 8000
|
||||
<VirtualHost *:8000>
|
||||
# PHP match
|
||||
<FilesMatch "\.php$">
|
||||
SetHandler "proxy:fcgi://nextcloud-aio-nextcloud:9000"
|
||||
|
|
Loading…
Reference in a new issue