blob: 66628a9538a507bf3f4c2e3902c06e9fe46a5258 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ config, 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
system.autoUpgrade.flags = [ "--update-input" "personal-webpage/data" ];
}
|