mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[Fix] Nginx headers
This commit is contained in:
parent
542528ab05
commit
e696caa31f
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,12 @@ server {
|
||||||
# > openssl dhparam -out /etc/ssl/private/dh2048.pem -outform PEM -2 2048
|
# > openssl dhparam -out /etc/ssl/private/dh2048.pem -outform PEM -2 2048
|
||||||
#ssl_dhparam /etc/ssl/private/dh2048.pem;
|
#ssl_dhparam /etc/ssl/private/dh2048.pem;
|
||||||
|
|
||||||
add_header Strict-Transport-Security "max-age=31536000;";
|
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload";
|
||||||
|
add_header 'Referrer-Policy' 'no-referrer';
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
add_header X-XSS-Protection "1; mode=block";
|
||||||
|
add_header X-Permitted-Cross-Domain-Policies none;
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN";
|
||||||
|
|
||||||
access_by_lua_file /usr/share/ssowat/access.lua;
|
access_by_lua_file /usr/share/ssowat/access.lua;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue