nginx_config/sites-available/nextcloud

33 lines
809 B
Plaintext
Raw Normal View History

2021-01-22 22:21:42 +00:00
server {
2021-01-22 23:10:53 +00:00
listen 443 ssl;
listen [::]:443 ssl;
2021-01-22 22:21:42 +00:00
2021-01-22 23:10:53 +00:00
root /var/www/html;
index index.html;
2021-01-22 22:21:42 +00:00
2021-01-22 23:10:53 +00:00
server_name cloud.domain.com;
2021-01-22 22:21:42 +00:00
2021-01-22 23:10:53 +00:00
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;
2021-01-22 22:21:42 +00:00
2021-01-22 23:10:53 +00:00
client_body_in_file_only clean;
client_body_buffer_size 128K;
2021-01-22 22:21:42 +00:00
2021-01-22 23:10:53 +00:00
client_max_body_size 5g;
2021-01-22 22:21:42 +00:00
2021-01-22 23:10:53 +00:00
sendfile on;
send_timeout 600s;
2021-01-22 22:21:42 +00:00
2021-01-22 23:10:53 +00:00
location / {
proxy_pass http://192.168.2.2/;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
2021-01-22 22:21:42 +00:00
2021-01-22 23:10:53 +00:00
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;
}
2021-01-22 22:21:42 +00:00
}