From d813c3c70e07bde3dac47224862bd8c653628d6c Mon Sep 17 00:00:00 2001 From: finn Date: Thu, 19 Mar 2026 15:02:05 -0700 Subject: [PATCH] update proxy --- compose.yaml | 2 +- proxy/baseconf | 8 ++++++++ proxy/sslconf | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 896c92d..533ea22 100644 --- a/compose.yaml +++ b/compose.yaml @@ -81,7 +81,7 @@ services: - GITEA__server__LANDING_PAGE=explore - GITEA__ui__REACTIONS="+1, -1, fu, heart, laugh, confused, hooray, eyes, gun, boom, poop, kiss, rocket, bomb, chart_with_downwards_trend, eggplant" # To disable new users after setup: - - GITEA__service__DISABLE_REGISTRATION=false + - GITEA__service__DISABLE_REGISTRATION=true networks: - backnet - frontnet diff --git a/proxy/baseconf b/proxy/baseconf index 04abcd7..939d149 100755 --- a/proxy/baseconf +++ b/proxy/baseconf @@ -7,6 +7,14 @@ server { location /gutty{ proxy_pass http://gitea:3000; } + location /nextcloud{ + client_max_body_size 512M; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_pass http://nextcloud/; + } } diff --git a/proxy/sslconf b/proxy/sslconf index 25ca6b9..1038d71 100755 --- a/proxy/sslconf +++ b/proxy/sslconf @@ -51,3 +51,22 @@ server { } } +server { + listen 443 ssl http2; + # use the certificates + ssl_certificate /etc/letsencrypt/live/oily.dad/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/oily.dad/privkey.pem; + server_name nextcloud.oily.dad; + root /var/www/html; + index index.php index.html index.htm; + + location / { + client_max_body_size 512M; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_pass http://nextcloud/; + } +} +