Compare commits

..

No commits in common. "c686e2dc1a87b108437485354770d981706a17d9" and "9c24c8714ff24e38bf0a72d7141bf8fb701e277e" have entirely different histories.

View file

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