51 lines
1.3 KiB
Nginx Configuration File
Executable File
51 lines
1.3 KiB
Nginx Configuration File
Executable File
server {
|
|
listen 443;
|
|
server_name ctclouduit.czech-tv.cz;
|
|
|
|
ssl on;
|
|
ssl_session_cache builtin:1000 shared:SSL:10m;
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
|
client_max_body_size 10240M;
|
|
|
|
ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
|
|
ssl_certificate /etc/nginx/cert/CT.crt;
|
|
ssl_certificate_key /etc/nginx/cert/CT.key;
|
|
|
|
access_log /var/log/nginx/ctclouduit_access.log;
|
|
error_log /var/log/nginx/ctclouduit_error.log;
|
|
|
|
include snippets/authelia.conf; # Authelia auth endpoint
|
|
|
|
location / {
|
|
proxy_pass https://172.30.26.252;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
include snippets/auth.conf; # Protect this endpoint
|
|
proxy_http_version 1.1;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
server {
|
|
if ($host = ctclouduit.czech-tv.cz) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
|
|
|
|
listen 80;
|
|
|
|
server_name ctclouduit.czech-tv.cz;
|
|
return 404;
|
|
|
|
|
|
}
|