mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #618 from frju365/patch-1
[fix] Propagate HTTP2, more_set_headers and ecdh_curve changes to webadmin
This commit is contained in:
commit
951d60c6d5
1 changed files with 11 additions and 18 deletions
|
@ -13,10 +13,8 @@ server {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
# Disabling http2 for now as it's causing weird issues with curl
|
# Disabling http2 for now as it's causing weird issues with curl
|
||||||
#listen 443 ssl http2 default_server;
|
listen 443 ssl http2 default_server;
|
||||||
#listen [::]:443 ssl http2 default_server;
|
listen [::]:443 ssl http2 default_server;
|
||||||
listen 443 ssl default_server;
|
|
||||||
listen [::]:443 ssl default_server;
|
|
||||||
|
|
||||||
ssl_certificate /etc/yunohost/certs/yunohost.org/crt.pem;
|
ssl_certificate /etc/yunohost/certs/yunohost.org/crt.pem;
|
||||||
ssl_certificate_key /etc/yunohost/certs/yunohost.org/key.pem;
|
ssl_certificate_key /etc/yunohost/certs/yunohost.org/key.pem;
|
||||||
|
@ -24,12 +22,7 @@ server {
|
||||||
ssl_session_cache shared:SSL:50m;
|
ssl_session_cache shared:SSL:50m;
|
||||||
|
|
||||||
# As suggested by Mozilla : https://wiki.mozilla.org/Security/Server_Side_TLS and https://en.wikipedia.org/wiki/Curve25519
|
# As suggested by Mozilla : https://wiki.mozilla.org/Security/Server_Side_TLS and https://en.wikipedia.org/wiki/Curve25519
|
||||||
# (this doesn't work on jessie though ...?)
|
ssl_ecdh_curve secp521r1:secp384r1:prime256v1;
|
||||||
# ssl_ecdh_curve secp521r1:secp384r1:prime256v1;
|
|
||||||
|
|
||||||
# As suggested by https://cipherli.st/
|
|
||||||
ssl_ecdh_curve secp384r1;
|
|
||||||
|
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
# Ciphers with intermediate compatibility
|
# Ciphers with intermediate compatibility
|
||||||
|
@ -50,14 +43,14 @@ server {
|
||||||
# Follows the Web Security Directives from the Mozilla Dev Lab and the Mozilla Obervatory + Partners
|
# Follows the Web Security Directives from the Mozilla Dev Lab and the Mozilla Obervatory + Partners
|
||||||
# https://wiki.mozilla.org/Security/Guidelines/Web_Security
|
# https://wiki.mozilla.org/Security/Guidelines/Web_Security
|
||||||
# https://observatory.mozilla.org/
|
# https://observatory.mozilla.org/
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
more_set_headers "Strict-Transport-Security : max-age=63072000; includeSubDomains; preload";
|
||||||
add_header 'Referrer-Policy' 'same-origin';
|
more_set_headers "Referrer-Policy : 'same-origin'";
|
||||||
add_header Content-Security-Policy "upgrade-insecure-requests; object-src 'none'; script-src https: 'unsafe-eval'";
|
more_set_headers "Content-Security-Policy : upgrade-insecure-requests; object-src 'none'; script-src https: 'unsafe-eval'";
|
||||||
add_header X-Content-Type-Options nosniff;
|
more_set_headers "X-Content-Type-Options : nosniff";
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
more_set_headers "X-XSS-Protection : 1; mode=block";
|
||||||
add_header X-Download-Options noopen;
|
more_set_headers "X-Download-Options : noopen";
|
||||||
add_header X-Permitted-Cross-Domain-Policies none;
|
more_set_headers "X-Permitted-Cross-Domain-Policies : none";
|
||||||
add_header X-Frame-Options "SAMEORIGIN";
|
more_set_headers "X-Frame-Options : SAMEORIGIN";
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 302 https://$http_host/yunohost/admin;
|
return 302 https://$http_host/yunohost/admin;
|
||||||
|
|
Loading…
Add table
Reference in a new issue