Compare commits
2 commits
8e98273fcf
...
2a1259cbfa
Author | SHA1 | Date | |
---|---|---|---|
|
2a1259cbfa | ||
|
6614c4a553 |
|
@ -19,6 +19,27 @@ in {
|
||||||
host = {
|
host = {
|
||||||
reverse_proxy.subdomains.${config.host.immich.subdomain} = {
|
reverse_proxy.subdomains.${config.host.immich.subdomain} = {
|
||||||
target = "http://localhost:${toString config.services.immich.port}";
|
target = "http://localhost:${toString config.services.immich.port}";
|
||||||
|
extraConfig = ''
|
||||||
|
# allow large file uploads
|
||||||
|
client_max_body_size 50000M;
|
||||||
|
|
||||||
|
# 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 "upgrade";
|
||||||
|
proxy_redirect off;
|
||||||
|
|
||||||
|
# set timeout
|
||||||
|
proxy_read_timeout 600s;
|
||||||
|
proxy_send_timeout 600s;
|
||||||
|
send_timeout 600s;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
postgres = {
|
postgres = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue