nginx_config/sites-available/nextcloud

26 lines
527 B
Plaintext
Raw Normal View History

2021-01-22 22:21:42 +00:00
server {
2021-01-22 23:15:42 +00:00
listen 443 ssl http2;
listen [::]:443 ssl http2;
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;
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/;
2021-01-22 23:31:55 +00:00
include /etc/nginx/snippets/proxy_options.conf;
2021-01-22 23:10:53 +00:00
}
2021-01-22 22:21:42 +00:00
}