Merge branch 'main' of github.com:anotherhadi/nixy

This commit is contained in:
Hadi
2026-05-04 09:49:27 +02:00
2 changed files with 11 additions and 4 deletions
Generated
+3 -3
View File
@@ -125,11 +125,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1777068438, "lastModified": 1777484430,
"narHash": "sha256-87KZIkdVRICi7BkPs50gM949qRrRBsznchVvmAAWxsY=", "narHash": "sha256-dnUDj6zLNhFeXkUzzKdecF7jqHhayZ4Q9+WbXJW+dnY=",
"owner": "anotherhadi", "owner": "anotherhadi",
"repo": "blog", "repo": "blog",
"rev": "e3f0fc5735b272ee518cdc579cf4fd638ee2adb5", "rev": "35ac328d5ed6f701c102ab6729aa842705208e6c",
"type": "github" "type": "github"
}, },
"original": { "original": {
+8 -1
View File
@@ -25,12 +25,19 @@ in {
} }
]; ];
locations."/" = { locations."/" = {
tryFiles = "$uri $uri/ /index.html"; tryFiles = "$uri $uri/ =404";
}; };
extraConfig = '' extraConfig = ''
port_in_redirect off; port_in_redirect off;
absolute_redirect off; absolute_redirect off;
error_page 403 /403.html;
error_page 404 /404.html;
error_page 500 /500.html;
error_page 503 /503.html;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' data: https://umami.${domain}; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://git.${domain}; connect-src 'self' https://umami.${domain};" always; add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' data: https://umami.${domain}; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://git.${domain}; connect-src 'self' https://umami.${domain};" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
''; '';
}; };
"www-redirect" = { "www-redirect" = {