init
This commit is contained in:
32
sites-available/nextcloud
Normal file
32
sites-available/nextcloud
Normal file
@ -0,0 +1,32 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user