This commit is contained in:
12
modules/anubis.nix
Normal file
12
modules/anubis.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.anubis = {
|
||||
enable = true;
|
||||
settings = {
|
||||
firewall.enabled = true;
|
||||
firewall.block_openai = true;
|
||||
firewall.block_google = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -84,6 +84,7 @@ in
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "DENY"
|
||||
X-Robots-Tag "noimageindex, noodp, noydir, noindex, nofollow"
|
||||
Referrer-Policy "strict-origin-when-cross-origin"
|
||||
Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://*.atri.dad https://*.atash.dev; font-src 'self' data:; connect-src 'self' wss: https://*.atri.dad https://*.atash.dev; object-src 'none'; base-uri 'self'; frame-ancestors 'none'"
|
||||
-Server
|
||||
@@ -98,6 +99,7 @@ in
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "DENY"
|
||||
X-Robots-Tag "noimageindex, noodp, noydir, noindex, nofollow"
|
||||
Referrer-Policy "strict-origin-when-cross-origin"
|
||||
Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; font-src 'self' data:; connect-src 'self' wss: https://*.atri.dad https://*.atash.dev; media-src 'self' https://rogers-hls.leanstream.co; object-src 'none'; base-uri 'self'; frame-ancestors 'none'"
|
||||
-Server
|
||||
|
||||
Reference in New Issue
Block a user