homepage
This commit is contained in:
parent
3197673678
commit
cd4ebfb807
5 changed files with 114 additions and 20 deletions
29
homepage.nix
Normal file
29
homepage.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ 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 = {
|
||||
ExecStart = "${homepage}/bin/homepage -p ${port}";
|
||||
User= "sondell";
|
||||
Type= "simple";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${domain} = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${port}/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue