summaryrefslogtreecommitdiff
path: root/config/services/web/quentin
diff options
context:
space:
mode:
Diffstat (limited to 'config/services/web/quentin')
-rw-r--r--config/services/web/quentin/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/services/web/quentin/default.nix b/config/services/web/quentin/default.nix
new file mode 100644
index 0000000..7194190
--- /dev/null
+++ b/config/services/web/quentin/default.nix
@@ -0,0 +1,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.system.autoUpgrade.autoUpdateInputs = lib.mkOptionDefault ["personal-webpage/data"];
+}