blob: ac617f70b61ce3345de22b6c116624306f38adc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{
config,
lib,
pkgs,
...
}: {
services.nginx.virtualHosts.quentin = {
serverName = "quentin.${config.networking.domain}";
locations."/".root = "${pkgs.personal.webpage}";
forceSSL = true;
enableACME = true;
extraConfig = ''
add_header Cache-Control no-cache;
add_header Content-Security-Policy "default-src 'none'; form-action 'none'; frame-ancestors 'none'; font-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline';";
'';
};
# automatically fetch (non-structural) website updates when updating the system
personal.nix.autoUpgrade.autoUpdateInputs = lib.mkOptionDefault ["personal-webpage/data"];
}
|