aboutsummaryrefslogtreecommitdiff
path: root/modules/tlmp/default.nix
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-08-01 15:45:28 +0200
committerMax Audron <audron@cocaine.farm>2025-08-01 15:45:28 +0200
commite7d81af57fe372e08b7d0193d31a9ff614d7a737 (patch)
tree063c2a219699a3171957b31c0a8a1d0d18cc8c94 /modules/tlmp/default.nix
parentdisable not used gameservers (diff)
add homepage dashboard
Diffstat (limited to 'modules/tlmp/default.nix')
-rw-r--r--modules/tlmp/default.nix24
1 files changed, 23 insertions, 1 deletions
diff --git a/modules/tlmp/default.nix b/modules/tlmp/default.nix
index ddb9ff3..8019ccd 100644
--- a/modules/tlmp/default.nix
+++ b/modules/tlmp/default.nix
@@ -44,7 +44,7 @@ with self.lib.nginx;
services.rutorrent = {
enable = true;
hostName = "torrent.media.cocaine.farm";
- plugins = lib.mkForce [ "data" "diskspace" "edit" "erasedata" "theme" "trafic" ];
+ plugins = lib.mkForce [ "httprpc" "data" "diskspace" "edit" "erasedata" "theme" "trafic" ];
nginx.enable = true;
};
@@ -73,12 +73,34 @@ with self.lib.nginx;
port = 80;
}];
+ serverAliases = [ "phaenn.wg.vapor.systems" ];
+
locations."/RPC2" = {
extraConfig = ''
include ${pkgs.nginx}/conf/scgi_params;
scgi_pass unix:/run/rtorrent/rpc.sock;
'';
};
+
+ root = config.services.rutorrent.dataDir;
+ locations = {
+ "~ [^/]\\.php(/|$)" = {
+ extraConfig = ''
+ fastcgi_split_path_info ^(.+?\.php)(/.*)$;
+ if (!-f $document_root$fastcgi_script_name) {
+ return 404;
+ }
+
+ # Mitigate https://httpoxy.org/ vulnerabilities
+ fastcgi_param HTTP_PROXY "";
+
+ fastcgi_pass unix:${config.services.phpfpm.pools.rutorrent.socket};
+ fastcgi_index index.php;
+
+ include ${pkgs.nginx}/conf/fastcgi.conf;
+ '';
+ };
+ };
};
};
};
backup&id=8e3f21362833874a39994157b85db64313d4d2ad&follow=1'>release version 1.2.1Max Audron-2/+2 2021-06-13fix crash on message only containing whitespaceMax Audron-1/+4 2021-06-11Release version 1.2.01.2.0Max Audron-2/+2 2021-06-06make pet more compactR0flcopt3r/catinator-pet-commandMax Audron-5/+5 2021-06-05feat: adds pet command.R0flcopt3r-0/+90 2021-06-05feat: send actionR0flcopt3r-1/+9 2021-06-05release version 1.1.0Max Audron-2/+2 2021-06-05document proc macrosMax Audron-4/+97 2021-06-05add intensifyMax Audron-3/+27 2021-06-05add privmsg macroMax Audron-2/+40 2021-06-05fix jb remote urlsMax Audron-4/+4 2021-06-05remove egress gateway configMax Audron-10/+0 2021-06-05update tanka dependenciesMax Audron-8/+8 2021-06-05fix init container nameMax Audron-1/+1 2021-06-05fix tanka dependency pathMax Audron-8/+8 2021-06-05switch to https url for tanka util libMax Audron-2/+2 2021-06-05bump version to 1.0.2Max Audron-2/+2 2021-06-05add tanka ci configurationMax Audron-1/+1 2021-06-05ready tanka deploy for CIMax Audron-32/+69 2021-06-05remove tanka vendoringMax Audron-27651/+0 2021-05-26Release 1.0.1Max Audron-3/+3 2021-05-26fix log breaking once buffer fullMax Audron-2/+33 2021-05-16add deployment stuffMax Audron-6/+27786 2021-05-15add container buildMax Audron-2/+35