start domain
This commit is contained in:
parent
af2abd3cb5
commit
f57f9a37f6
2 changed files with 27 additions and 23 deletions
43
homepage.nix
43
homepage.nix
|
|
@ -1,25 +1,8 @@
|
|||
{ homepage, ... }:
|
||||
|
||||
let
|
||||
domain = "sondell.org";
|
||||
{homepage, ...}: let
|
||||
domain1 = "sondell.org";
|
||||
domain2 = "start.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/home-prod -p ${port}";
|
||||
User= "sondell";
|
||||
Type= "simple";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${domain} = {
|
||||
hostSettings = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
|
|
@ -27,5 +10,21 @@ in
|
|||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
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/home-prod -p ${port}";
|
||||
User = "sondell";
|
||||
Type = "simple";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${domain1} = hostSettings;
|
||||
services.nginx.virtualHosts.${domain2} = hostSettings;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue