Infini-DL360/web: add lamp
This commit is contained in:
parent
d2529463f9
commit
b185249490
1 changed files with 28 additions and 0 deletions
|
@ -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>
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue