mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-08 09:14:11 +02:00
Merge branch 'master' of github.com:dump-dvb/nix-config
This commit is contained in:
commit
e2f0efcec2
|
@ -18,8 +18,29 @@
|
|||
|
||||
tryFiles = "$uri /index.html =404";
|
||||
};
|
||||
"~ /stop/*.(json)" = {
|
||||
"~ ^/stop/.*\.json$" = {
|
||||
root = "${pkgs.stops}/";
|
||||
extraConfig = ''
|
||||
# Permissions Policy - gps only
|
||||
add_header Permissions-Policy "geolocation=()";
|
||||
|
||||
# Minimize information leaked to other domains
|
||||
add_header 'Referrer-Policy' 'origin-when-cross-origin';
|
||||
|
||||
# Disable embedding as a frame
|
||||
add_header X-Frame-Options DENY;
|
||||
|
||||
# Prevent injection of code in other mime types (XSS Attacks)
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
|
||||
# Enable XSS protection of the browser.
|
||||
# May be unnecessary when CSP is configured properly (see above)
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
|
||||
# STS
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
add_header "Access-Control-Allow-Origin" "*";
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -66,6 +66,6 @@
|
|||
systemd.timers.dump-csv = {
|
||||
partOf = [ "dump-csv.service" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig.OnCalendar = "*-*-* 03:00:00";
|
||||
timerConfig.OnCalendar = "*-*-* 03:11:19";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user