nginx fixes
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
}:
|
||||
let
|
||||
cfg = config.my.websites.lidarrMbReport;
|
||||
mbHeaders = ''
|
||||
mbSecurityHeaders = ''
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
'';
|
||||
@@ -23,20 +23,22 @@ in
|
||||
"/" = {
|
||||
extraConfig = ''
|
||||
try_files $uri /missing_albums.html;
|
||||
${mbSecurityHeaders}
|
||||
'';
|
||||
};
|
||||
"~* \\.html$" = {
|
||||
extraConfig = ''
|
||||
add_header Content-Type "text/html; charset=utf-8";
|
||||
${mbSecurityHeaders}
|
||||
'';
|
||||
};
|
||||
"~* \\.json$" = {
|
||||
extraConfig = ''
|
||||
add_header Content-Type "application/json";
|
||||
${mbSecurityHeaders}
|
||||
'';
|
||||
};
|
||||
};
|
||||
extraConfig = mbHeaders;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user