aboutsummaryrefslogtreecommitdiff
path: root/roles/nginx_docker
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2023-01-04 20:13:48 +0000
committerKumar Damani <me@kumardamani.net>2023-01-04 20:13:48 +0000
commit40c0d09945fdf21601b5b62af9d16b0c254a92b6 (patch)
tree3e993f708a3bc073f08290b836340d6131ba3eaf /roles/nginx_docker
parent6c8156a62ee472e5ecefdc1bc3f97b4dd8a72b68 (diff)
draft: alpine stuff
Diffstat (limited to 'roles/nginx_docker')
-rw-r--r--roles/nginx_docker/templates/app.nginx.conf.j28
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/nginx_docker/templates/app.nginx.conf.j2 b/roles/nginx_docker/templates/app.nginx.conf.j2
index 82c3610..f6f92de 100644
--- a/roles/nginx_docker/templates/app.nginx.conf.j2
+++ b/roles/nginx_docker/templates/app.nginx.conf.j2
@@ -1,5 +1,6 @@
server {
listen 443 ssl;
+ client_max_body_size 500M;
root _;
server_name {{ item.conf.access_domain }};
ssl_certificate /etc/letsencrypt/live/{{ nginx_global_apps_domain }}/fullchain.pem;
@@ -18,8 +19,13 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
+{% if item.app == "photoprism" %} {# Photoprism requires websockets #}
+ proxy_buffering off;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+{% endif %}
proxy_read_timeout 1200s;
- client_max_body_size 0;
error_log /var/log/nginx/{{ item.app }}.error.log;
}
}