You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dc3-web/dc3/nginx/conf.d/default.conf

30 lines
895 B

server {
listen 80;
listen [::]:80;
rewrite ^(.*)$ https://$host$1 permanent;
include /etc/nginx/location/*.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
add_header X-Xss-Protection 1;
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_certificate /etc/nginx/conf.crt/dc3.site/fullchain.pem;
ssl_certificate_key /etc/nginx/conf.crt/dc3.site/privkey.pem;
rewrite ^/$ /dc3/demo permanent;
include /etc/nginx/location/*.conf;
}