From e7d81af57fe372e08b7d0193d31a9ff614d7a737 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 1 Aug 2025 15:45:28 +0200 Subject: add homepage dashboard --- modules/tlmp/default.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'modules/tlmp/default.nix') 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; + ''; + }; + }; }; }; }; -- cgit v1.2.3 ut type='hidden' name='h' value='1.3.2'/>
path: root/macros (unfollow)
Commit message (Expand)AuthorLines
2021-06-28>.>: add . as eyeMax Audron-1/+1
2021-06-28add lmr to channels1.3.1Max Audron-1/+1
2021-06-23rewrite sed regex to work cross channelMax Audron-115/+141
2021-06-23add required metadata for publishing to macros crateMax Audron-5/+12
2021-06-23add ability to use path and dotted syntax for functionsMax Audron-8/+39
2021-06-21publish macros subcrateMax Audron-20/+20
2021-06-13release 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