Compare commits
5 Commits
fc8ff2f671
...
e545add397
Author | SHA1 | Date | |
---|---|---|---|
e545add397 | |||
![]() |
de319def43 | ||
![]() |
4f99ff9c1e | ||
7c10e96035 | |||
73c0eda7cf |
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
./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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
14
hosts/malcolm/services/www-ctf-feal-no.nix
Normal file
14
hosts/malcolm/services/www-ctf-feal-no.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ 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/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -83,7 +83,6 @@
|
|||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user