diff --git a/README.md b/README.md index 53ed415..32be3ae 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,4 @@ Simply run `docker-compose up -d`. ## Post install * Change the password for `Tranmission` in `transmission/transmission.env`. +* Follow the instruction at swag/nginx/proxy-confs/nextcloud.subdomain.conf diff --git a/docker-compose.yml b/docker-compose.yml index ab8959a..dd14208 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -327,6 +327,18 @@ services: - 22000:22000 - 21027:21027/udp + nextcloud: + image: linuxserver/nextcloud + container_name: nextcloud + restart: unless-stopped + env_file: + - ./nextcloud/nextcloud.env + volumes: + - ./nextcloud:/config + - ~/nextcloud:/data + expose: + - 443 + fava: image: yegle/fava restart: unless-stopped diff --git a/nextcloud/nextcloud.env b/nextcloud/nextcloud.env new file mode 100644 index 0000000..8228a1e --- /dev/null +++ b/nextcloud/nextcloud.env @@ -0,0 +1,3 @@ +PUID=1000 +PGID=1000 +TZ=Europe/Paris diff --git a/swag/nginx/proxy-confs/nextcloud.subdomain.conf b/swag/nginx/proxy-confs/nextcloud.subdomain.conf new file mode 100644 index 0000000..16c7285 --- /dev/null +++ b/swag/nginx/proxy-confs/nextcloud.subdomain.conf @@ -0,0 +1,35 @@ +# make sure that your dns has a cname set for nextcloud +# assuming this container is called "swag", edit your nextcloud container's config +# located at /config/www/nextcloud/config/config.php and add the following lines before the ");": +# 'trusted_proxies' => ['swag'], +# 'overwrite.cli.url' => 'https://nextcloud.your-domain.com/', +# 'overwritehost' => 'nextcloud.your-domain.com', +# 'overwriteprotocol' => 'https', +# +# Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this: +# array ( +# 0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it. +# 1 => 'nextcloud.your-domain.com', +# ), + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name nextcloud.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + location / { + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_app nextcloud; + set $upstream_port 443; + set $upstream_proto https; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + proxy_max_temp_file_size 2048m; + } +}