feat: initial nginx templates

This commit is contained in:
lingkai5wu committed 2026-08-16 15:02:17 +08:00
commit 6baf6b47dd
6 files changed
+91

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
server {
listen 80 default_server;
server_name _;
return 404;
}
server {
listen 443 ssl default_server;
include snippets/https.conf;
server_name _;
return 404;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
+13
View File
@@ -0,0 +1,13 @@
server {
listen 443 ssl;
include snippets/https.conf;
server_name gitea.${BASE_DOMAIN};
include snippets/proxy.conf;
location / {
proxy_pass http://gitea:3000;
client_max_body_size 512M;
}
}
+32
View File
@@ -0,0 +1,32 @@
server {
listen 443 ssl;
include snippets/https.conf;
server_name immich.${BASE_DOMAIN};
include snippets/proxy.conf;
# allow large file uploads
client_max_body_size 50000M;
# disable buffering uploads to prevent OOM on reverse proxy server and make uploads twice as fast (no pause)
proxy_request_buffering off;
# increase body buffer to avoid limiting upload speed
client_body_buffer_size 1024k;
# set timeout
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
location / {
proxy_pass http://immich-server:2283;
proxy_redirect off;
}
# useful when using Let's Encrypt http-01 challenge
# location = /.well-known/immich {
# proxy_pass http://<backend_url>:2283;
# }
}
+13
View File
@@ -0,0 +1,13 @@
server {
listen 443 ssl;
include snippets/https.conf;
server_name openlist.${BASE_DOMAIN};
include snippets/proxy.conf;
location / {
proxy_pass http://openlist:5244;
proxy_redirect off;
}
}
+3
View File
@@ -0,0 +1,3 @@
http2 on;
ssl_certificate /etc/nginx/certs/${BASE_DOMAIN}/fullchain.pem;
ssl_certificate_key /etc/nginx/certs/${BASE_DOMAIN}/key.pem;
+10
View File
@@ -0,0 +1,10 @@
# set headers
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;
# enable websockets: http://nginx.org/en/docs/http/websocket.html
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;