Files
nginx_sites/fet.at/cloud.conf
2018-03-25 20:23:08 +02:00

44 lines
1.0 KiB
Nginx Configuration File

# -*-nginx-*-
server {
listen 80;
server_name www.cloud.fet.at cloud.fet.at;
location /.well-known {
root /srv/pxy/cloud2;
allow all;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
server_name www.cloud.fet.at cloud.fet.at;
ssl_certificate /etc/letsencrypt/live/www.cloud.fet.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.cloud.fet.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/www.cloud.fet.at/chain.pem;
include snippets/ssl.conf;
# include snippets/ldap.conf;
client_max_body_size 4000M;
sendfile on;
send_timeout 600s;
client_body_in_file_only clean;
index index.php;
location / {
try_files $uri @pxy;
}
location @pxy {
proxy_pass http://192.168.95.22;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_buffering off;
proxy_request_buffering off;
client_body_buffer_size 32K;
}
}