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 + + ''; + }; }