48 lines
1.1 KiB
Nginx Configuration File
48 lines
1.1 KiB
Nginx Configuration File
# -*-nginx-*-
|
|
server {
|
|
listen 80;
|
|
server_name www.cloud.fet.at cloud.fet.at;
|
|
|
|
root /srv/pxy/cloud2;
|
|
location /.well-known {
|
|
allow all;
|
|
}
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
server_name www.cloud.fet.at cloud.fet.at;
|
|
client_max_body_size 4000M;
|
|
sendfile on;
|
|
send_timeout 600s;
|
|
client_body_in_file_only clean;
|
|
|
|
# include letsencrypt.conf;
|
|
ssl_certificate /etc/letsencrypt/live/www.cloud.fet.at/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/www.cloud.fet.at/privkey.pem;
|
|
|
|
|
|
# auth_basic " under construction ";
|
|
# auth_basic_user_file /srv/fachschaften_htpasswd;
|
|
root /srv/pxy/cloud2;
|
|
index index.php;
|
|
location /.well-known {
|
|
allow all;
|
|
}
|
|
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;
|
|
}
|
|
|
|
}
|