Add immich.conf
This commit is contained in:
35
data/user_conf.d/immich.conf
Executable file
35
data/user_conf.d/immich.conf
Executable file
@@ -0,0 +1,35 @@
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name photo.awin.one;
|
||||
|
||||
# Load the certificate files.
|
||||
ssl_certificate /etc/letsencrypt/live/photo.awin.one/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/photo.awin.one/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/photo.awin.one/chain.pem;
|
||||
|
||||
|
||||
|
||||
location / {
|
||||
proxy_pass http://192.168.1.24:2283;
|
||||
|
||||
# allow large file uploads
|
||||
client_max_body_size 50000M;
|
||||
|
||||
# Set headers
|
||||
proxy_set_header Host $http_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 "upgrade";
|
||||
proxy_redirect off;
|
||||
|
||||
# set timeout
|
||||
proxy_read_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
send_timeout 600s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user