Add webserver service

This commit is contained in:
Tristan Daniël Maat 2021-04-12 01:44:10 +01:00
parent 98cf95a922
commit 40002ac76e
Signed by: tlater
GPG key ID: 49670FD774E43268
4 changed files with 170 additions and 4 deletions
configuration

View file

@ -1,7 +1,8 @@
{ config, pkgs, ... }:
{
imports = [ ./services/gitea.nix ./services/nextcloud.nix ];
imports =
[ ./services/gitea.nix ./services/nextcloud.nix ./services/webserver.nix ];
nix = {
package = pkgs.nixFlakes;
@ -53,6 +54,7 @@
locations."/" = { proxyPass = "http://localhost:${toString port}"; };
} // extra;
in {
"tlater.net" = host 3002 { serverAliases = [ "www.tlater.net" ]; };
"gitea.tlater.net" = host 3000 { };
"nextcloud.tlater.net" = host 3001 { };
};