nginx_config/sites-available/nextcloud
2021-01-22 23:21:42 +01:00

33 lines
934 B
Plaintext

server {
listen 443 ssl;
listen [::]:443 ssl;
root /var/www/html;
index index.html;
server_name cloud.domain.com;
ssl_certificate /etc/letsencrypt/live/cloud.domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/cloud.domain.com/privkey.pem;
include /etc/nginx/snippets/ssl_options.conf;
client_body_in_file_only clean;
client_body_buffer_size 128K;
client_max_body_size 5g;
sendfile on;
send_timeout 600s;
location / {
proxy_pass http://192.168.2.2/;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
}
}