34 lines
861 B
Plaintext
Executable File
34 lines
861 B
Plaintext
Executable File
server {
|
|
listen 443 ssl http2;
|
|
server_name gitsys.czech-tv.cz;
|
|
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
ssl_certificate /etc/nginx/cert/CT.crt;
|
|
ssl_certificate_key /etc/nginx/cert/CT.key;
|
|
ssl_session_timeout 5m;
|
|
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
|
|
ssl_protocols TLSv1.2;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name gitsys.czech-tv.cz;
|
|
if ($host = gitsys.czech-tv.cz) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|