Multiple changes: * Add shell script to run nextcloud shell * Use local folder for Nextcloud Config * Add missing proxy image * Use Ip for Nextcloud Trusted Proxies (FQDN incompatibility with new update) * Use custom resolvers on proxy container (Fixes dns errors)
This commit is contained in:
parent
4b738fe19b
commit
4a27b6d89d
5 changed files with 19 additions and 13 deletions
|
|
@ -1,5 +1,3 @@
|
|||
version: '3.7'
|
||||
|
||||
volumes:
|
||||
#SSL
|
||||
certs:
|
||||
|
|
@ -19,8 +17,9 @@ services:
|
|||
restart: always
|
||||
volumes:
|
||||
- nc-data:/var/www/html
|
||||
- ./config/nc:/var/www/html/config:rw
|
||||
environment:
|
||||
- TRUSTED_PROXIES=palta.cyou
|
||||
- TRUSTED_PROXIES=172.16.0.0/12 192.168.0.0/16 10.0.0.0/8 fc00::/7 fe80::/10 2001:db8::/32
|
||||
- TRUSTED_DOMAINS=palta.cyou,bard.palta.cyou
|
||||
- OVERWRITEPROTOCOL=https
|
||||
|
||||
|
|
@ -79,6 +78,11 @@ services:
|
|||
- 443:443
|
||||
networks:
|
||||
- proxy-tier
|
||||
environment:
|
||||
- ENABLE_IPV6=true
|
||||
- SHA1_UPSTREAM_NAME=true
|
||||
- TRUST_DOWNSTREAM_PROXY=false
|
||||
- RESOLVERS=8.8.8.8 8.8.4.4 [2001:4860:4860::8888] [2001:4860:4860::8844] valid=300s ipv6=on
|
||||
|
||||
letsencrypt-companion:
|
||||
image: docker.io/nginxproxy/acme-companion
|
||||
|
|
|
|||
3
images/proxy/Dockerfile
Normal file
3
images/proxy/Dockerfile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
FROM nginxproxy/nginx-proxy:alpine
|
||||
|
||||
COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf
|
||||
8
images/proxy/uploadsize.conf
Normal file
8
images/proxy/uploadsize.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
client_max_body_size 10G;
|
||||
proxy_read_timeout 3600;
|
||||
proxy_request_buffering off;
|
||||
#client_body_temp_path /tmp/ngx 1 2;
|
||||
#proxy_buffering off;
|
||||
proxy_connect_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
send_timeout 3600;
|
||||
1
next-shell.sh
Executable file
1
next-shell.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
docker compose exec -tiu www-data nextcloud bash
|
||||
|
|
@ -1,13 +1,3 @@
|
|||
## Start of configuration add by letsencrypt container
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
auth_basic off;
|
||||
auth_request off;
|
||||
allow all;
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri =404;
|
||||
break;
|
||||
}
|
||||
## End of configuration add by letsencrypt container
|
||||
# From: https://github.com/nextcloud/docker/blob/85e22b4a8e6b12d82d574c7eacd68656dac85bf5/.examples/docker-compose/with-nginx-proxy/postgres/fpm/proxy/uploadsize.conf
|
||||
client_max_body_size 10G;
|
||||
proxy_request_buffering off;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue