fu google
This commit is contained in:
parent
cff35f130e
commit
b05d227a04
|
@ -13,12 +13,14 @@ in
|
||||||
root = "${hopglass-fe}";
|
root = "${hopglass-fe}";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
access_log off;
|
access_log off;
|
||||||
|
add_header Permissions-Policy "interest-cohort=()" always;
|
||||||
'';
|
'';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
index index.html;
|
index index.html;
|
||||||
etag off;
|
etag off;
|
||||||
add_header etag "\"${builtins.substring 11 32 hopglass-fe}\"";
|
add_header etag "\"${builtins.substring 11 32 hopglass-fe}\"";
|
||||||
|
add_header Permissions-Policy "interest-cohort=()" always;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,10 +30,12 @@ in
|
||||||
|
|
||||||
etag off;
|
etag off;
|
||||||
add_header etag "\"${builtins.substring 11 32 postfixadminpkg}\"";
|
add_header etag "\"${builtins.substring 11 32 postfixadminpkg}\"";
|
||||||
|
add_header Permissions-Policy "interest-cohort=()" always;
|
||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
location ~* \.php$ {
|
location ~* \.php$ {
|
||||||
|
add_header Permissions-Policy "interest-cohort=()" always;
|
||||||
# Zero-day exploit defense.
|
# Zero-day exploit defense.
|
||||||
# http://forum.nginx.org/read.php?2,88845,page=3
|
# http://forum.nginx.org/read.php?2,88845,page=3
|
||||||
# Won't work properly (404 error) if the file is not stored on this
|
# Won't work properly (404 error) if the file is not stored on this
|
||||||
|
|
|
@ -34,23 +34,28 @@ in
|
||||||
root = "${roundcube}/public_html";
|
root = "${roundcube}/public_html";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
access_log off;
|
access_log off;
|
||||||
'';
|
add_header Permissions-Policy "interest-cohort=()" always;
|
||||||
|
'';
|
||||||
locations."~ ^/favicon.ico/.*$" = {
|
locations."~ ^/favicon.ico/.*$" = {
|
||||||
extraConfig = "try_files $uri kins/larry/images/$uri;";
|
extraConfig = ''
|
||||||
|
try_files $uri kins/larry/images/$uri;
|
||||||
|
add_header Permissions-Policy "interest-cohort=()" always;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
index index.php;
|
index index.php;
|
||||||
try_files $uri /public/$uri /index.php$is_args$args;
|
try_files $uri /public/$uri /index.php$is_args$args;
|
||||||
|
etag off;
|
||||||
etag off;
|
add_header etag "\"${builtins.substring 11 32 roundcube}\"";
|
||||||
add_header etag "\"${builtins.substring 11 32 roundcube}\"";
|
add_header Permissions-Policy "interest-cohort=()" always;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
locations."~ [^/]\.php(/|$)" = {
|
locations."~ [^/]\.php(/|$)" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
etag off;
|
etag off;
|
||||||
add_header etag "\"${builtins.substring 11 32 roundcube}\"";
|
add_header etag "\"${builtins.substring 11 32 roundcube}\"";
|
||||||
|
add_header Permissions-Policy "interest-cohort=()" always;
|
||||||
|
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
if (!-f $document_root$fastcgi_script_name) {
|
if (!-f $document_root$fastcgi_script_name) {
|
||||||
|
|
Loading…
Reference in a new issue