robots.txt: dissalow all

This commit is contained in:
Khaïs COLIN 2025-11-16 16:12:29 +01:00
parent 5680e1293a
commit c686e2dc1a
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo

View file

@ -383,7 +383,16 @@
]; ];
# reverse proxy # reverse proxy
services.nginx = { services.nginx = let
robots = {
locations."/robots.txt" = {
extraConfig = ''
add_header Content-Type text/plain;
return 200 "User-Agent: *\nDisallow: /";
'';
};
};
in {
enable = true; enable = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
recommendedOptimisation = true; recommendedOptimisation = true;
@ -395,30 +404,42 @@
access_log syslog:server=unix:/dev/log combined; access_log syslog:server=unix:/dev/log combined;
''; '';
virtualHosts = { virtualHosts = {
"void.hummingbird-stork.ts.net" = { "void.hummingbird-stork.ts.net" =
robots
// {
locations."/".proxyPass = "http://localhost:8096"; locations."/".proxyPass = "http://localhost:8096";
}; };
"jellyfin.005540.xyz" = { "jellyfin.005540.xyz" =
robots
// {
locations."/".proxyPass = "http://localhost:8096"; locations."/".proxyPass = "http://localhost:8096";
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
"forgejo.005540.xyz" = { "forgejo.005540.xyz" =
robots
// {
locations."/".proxyPass = "http://localhost:3000"; locations."/".proxyPass = "http://localhost:3000";
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
"miniflux.005540.xyz" = { "miniflux.005540.xyz" =
robots
// {
locations."/".proxyPass = "http://localhost:8700"; locations."/".proxyPass = "http://localhost:8700";
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
"paperless.005540.xyz" = { "paperless.005540.xyz" =
robots
// {
locations."/".proxyPass = "http://localhost:28981"; locations."/".proxyPass = "http://localhost:28981";
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
"immich.005540.xyz" = { "immich.005540.xyz" =
robots
// {
locations."/".proxyPass = "http://localhost:2283"; locations."/".proxyPass = "http://localhost:2283";
locations."/".proxyWebsockets = true; locations."/".proxyWebsockets = true;
extraConfig = '' extraConfig = ''
@ -430,13 +451,17 @@
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
"victorialogs.005540.xyz" = { "victorialogs.005540.xyz" =
robots
// {
locations."/".proxyPass = "http://localhost:9428"; locations."/".proxyPass = "http://localhost:9428";
locations."/".basicAuthFile = "/etc/nixos/secrets/victorialogs/basicauth"; locations."/".basicAuthFile = "/etc/nixos/secrets/victorialogs/basicauth";
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
"nextcloud.005540.xyz" = { "nextcloud.005540.xyz" =
robots
// {
locations."/".proxyWebsockets = true; locations."/".proxyWebsockets = true;
locations."/whiteboard/" = { locations."/whiteboard/" = {
proxyWebsockets = true; proxyWebsockets = true;
@ -445,12 +470,16 @@
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
"copyparty.005540.xyz" = { "copyparty.005540.xyz" =
robots
// {
locations."/".proxyPass = "http://localhost:3004"; locations."/".proxyPass = "http://localhost:3004";
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
"food-tracker.005540.xyz" = { "food-tracker.005540.xyz" =
robots
// {
locations."/".proxyPass = "http://localhost:3001"; locations."/".proxyPass = "http://localhost:3001";
locations."/".basicAuthFile = "/etc/nixos/secrets/food-tracker/basicauth"; locations."/".basicAuthFile = "/etc/nixos/secrets/food-tracker/basicauth";
enableACME = true; enableACME = true;