From b185249490d03aa074b19175889a2960c7fd241f Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 22 May 2025 17:58:09 -0400 Subject: [PATCH] Infini-DL360/web: add lamp --- hosts/Infini-DL360/web.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/hosts/Infini-DL360/web.nix b/hosts/Infini-DL360/web.nix index 122c66e..8b23543 100644 --- a/hosts/Infini-DL360/web.nix +++ b/hosts/Infini-DL360/web.nix @@ -119,6 +119,11 @@ in tryFiles = "$uri $uri/ $uri.html /index.html"; }; }; + "lamp.inx.moe" = ssl-inx // { + locations."/" = { + proxyPass = "http://localhost:48080"; + }; + }; }; services.uwsgi = { @@ -126,4 +131,27 @@ in plugins = [ "python3" ]; instance.type = "emperor"; }; + + services.httpd.enable = true; + services.httpd.virtualHosts."lamp.inx.moe" = rec { + listen = [ + { + ip = "127.0.0.1"; + port = 48080; + } + ]; + + adminAddr = "webmaster@inx.moe"; + documentRoot = "/srv/web/lamp.inx.moe"; + + extraConfig = '' + AddHandler cgi-script .cgi + + + AllowOverride All + Options All + Require all granted + + ''; + }; }