mirror of https://gitlab.com/bashrc2/epicyon
Webserver configuration
parent
fe11bdcc31
commit
c58985f6ad
|
@ -1390,6 +1390,16 @@
|
|||
listen 443 ssl;<br>
|
||||
server_name YOUR_DOMAIN;<br>
|
||||
<br>
|
||||
gzip on;<br>
|
||||
gzip_disable "msie6";<br>
|
||||
gzip_vary on;<br>
|
||||
gzip_proxied any;<br>
|
||||
gzip_min_length 1024;<br>
|
||||
gzip_comp_level 6;<br>
|
||||
gzip_buffers 16 8k;<br>
|
||||
gzip_http_version 1.1;<br>
|
||||
gzip_types text/plain text/css application/json application/ld+json application/javascript text/xml application/xml application/rdf+xml application/xml+rss text/javascript;<br>
|
||||
<br>
|
||||
ssl_stapling off;<br>
|
||||
ssl_stapling_verify off;<br>
|
||||
ssl on;<br>
|
||||
|
@ -1397,19 +1407,19 @@
|
|||
ssl_certificate_key /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem;<br>
|
||||
#ssl_dhparam /etc/ssl/certs/YOUR_DOMAIN.dhparam;<br>
|
||||
<br>
|
||||
ssl_session_cache builtin:1000 shared:SSL:10m;<br>
|
||||
ssl_session_timeout 60m;<br>
|
||||
ssl_prefer_server_ciphers on;<br>
|
||||
ssl_protocols TLSv1.2 TLSv1.3;<br>
|
||||
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';<br>
|
||||
ssl_ciphers HIGH:!MEDIUM:!LOW:!aNULL:!NULL:!SHA;<br>
|
||||
ssl_prefer_server_ciphers on;<br>
|
||||
ssl_session_cache shared:SSL:10m;<br>
|
||||
ssl_session_tickets off;<br>
|
||||
<br>
|
||||
add_header Content-Security-Policy "default-src https:; script-src https: 'unsafe-inline'; style-src https: 'unsafe-inline'";<br>
|
||||
add_header X-Frame-Options DENY;<br>
|
||||
add_header X-Content-Type-Options nosniff;<br>
|
||||
add_header X-XSS-Protection "1; mode=block";<br>
|
||||
add_header X-Download-Options noopen;<br>
|
||||
add_header X-Permitted-Cross-Domain-Policies none;<br>
|
||||
<br>
|
||||
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";<br>
|
||||
add_header Strict-Transport-Security max-age=15768000;<br>
|
||||
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" always;<br>
|
||||
<br>
|
||||
access_log /dev/null;<br>
|
||||
error_log /dev/null;<br>
|
||||
|
|
Loading…
Reference in New Issue