Infini-DL360/web: add lamp

This commit is contained in:
Infinidoge 2025-05-22 17:58:09 -04:00
parent d2529463f9
commit b185249490
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -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
<Directory "${documentRoot}">
AllowOverride All
Options All
Require all granted
</Directory>
'';
};
}