2024-03-27 13:08:02 +01:00
|
|
|
{ homepage, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
domain = "sondell.org";
|
|
|
|
port = "8118";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
systemd.services.homepage = {
|
|
|
|
enable = true;
|
|
|
|
description = "homepage with links to selfhosted services";
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
unitConfig = {
|
|
|
|
After="network-online.target";
|
|
|
|
};
|
|
|
|
serviceConfig = {
|
2024-04-10 11:01:54 +02:00
|
|
|
ExecStart = "${homepage}/bin/home-prod -p ${port}";
|
2024-03-27 13:08:02 +01:00
|
|
|
User= "sondell";
|
|
|
|
Type= "simple";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts.${domain} = {
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:${port}/";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|