Starlio-web/nginx.conf
Redume bd28738686
Some checks are pending
Create and publish a Docker image / build-and-push-image (push) Waiting to run
добавил новые блоки для фиска
2024-10-18 22:24:38 +03:00

31 lines
No EOL
684 B
Nginx Configuration File

events { }
http {
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name example.com;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
server_name example.com;
ssl_certificate /etc/nginx/ssl/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m;
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
add_header Strict-Transport-Security "max-age=63072000" always;
}
}