snikket_ynh/conf/nginx.share.conf
NorbiPeti bf4580154e Fixes and nginx config update
- The Android app can connect, although not directly with QR
2024-06-11 01:51:59 +02:00

15 lines
No EOL
446 B
Text

root /var/www/snikket/snikket_web;
location / {
return 301 https://__DOMAIN__/;
}
location /upload/ {
client_max_body_size 104857616; # 100MB + 16 bytes (see Prosody config)
proxy_request_buffering off;
proxy_http_version 1.1;
proxy_pass http://localhost:__PORT__;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}