Compare commits

..

3 Commits

Author SHA1 Message Date
fc8ff2f671 worf: Update to nixos 25.05 2025-06-03 22:15:16 +02:00
Felix Albrigtsen
3c6e849d8d flake: Start switching to NixOS 25.05 2025-06-03 12:19:05 +02:00
Felix Albrigtsen
f048f1f371 Configure fa-t14 2025-06-03 11:22:31 +02:00
3 changed files with 1 additions and 15 deletions

View File

@ -10,7 +10,6 @@
./services/mysql.nix ./services/mysql.nix
./services/nginx.nix ./services/nginx.nix
./services/www-ctf-feal-no.nix
./services/www-kinealbrigtsen-no.nix ./services/www-kinealbrigtsen-no.nix
]; ];

View File

@ -1,14 +0,0 @@
{ config, pkgs, lib, ... }:
{
services.nginx.virtualHosts."ctf.feal.no" = {
locations = {
"/".return = "302 https://www.feal.no/";
"/cc/" = {
alias = "${pkgs.cyberchef}/share/cyberchef/";
index = "index.html";
};
"= /cc".return = "302 /cc/";
};
};
}

View File

@ -83,6 +83,7 @@
set_real_ip_from 192.168.11.0/24; set_real_ip_from 192.168.11.0/24;
real_ip_header X-Forwarded-For; real_ip_header X-Forwarded-For;
add_header Content-Security-Policy "script-src 'self'; object-src 'none'; base-uri 'none';" always;
add_header 'Referrer-Policy' 'origin-when-cross-origin'; add_header 'Referrer-Policy' 'origin-when-cross-origin';
add_header X-Frame-Options DENY; add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;