From 2db0611650feb9818bc84a841728461f9858d5a3 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 13 Oct 2024 03:27:54 -0700 Subject: [PATCH] Add Nextcloud --- etc/nginx/conf.d/sites_nextcloud.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 etc/nginx/conf.d/sites_nextcloud.conf diff --git a/etc/nginx/conf.d/sites_nextcloud.conf b/etc/nginx/conf.d/sites_nextcloud.conf new file mode 100644 index 0000000..e0e7df8 --- /dev/null +++ b/etc/nginx/conf.d/sites_nextcloud.conf @@ -0,0 +1,25 @@ +server { + listen ipv4_1:443 quic reuseport; + listen ipv4_1:443 ssl; + listen [ipv6_1]:443 quic reuseport; + listen [ipv6_1]:443 ssl; + + server_name cloud.yourdomain.tld; + + ssl_certificate /etc/letsencrypt/live/cloud.yourdomain.tld/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/cloud.yourdomain.tld/privkey.pem; + ssl_trusted_certificate /etc/letsencrypt/live/cloud.yourdomain.tld/chain.pem; + + include snippets/universal_paths.conf; + include snippets/hsts.conf; + include snippets/security.conf; + include snippets/quic.conf; + include snippets/proxy.conf; + + add_header Cross-Origin-Resource-Policy "same-origin" always; + add_header Cross-Origin-Opener-Policy "same-origin" always; + + location / { + proxy_pass http://nextcloud:8080; + } +}