diff --git a/services/blog.nix b/services/blog.nix new file mode 100644 index 0000000..4a12b8c --- /dev/null +++ b/services/blog.nix @@ -0,0 +1,20 @@ +{ pkgs, lib, ... }: { + name = "blog"; + ports = { + tcp = [ 80 ]; + udp = []; + http = 80; + forward = []; + }; + config = { + services.nginx = { + enable = true; + recommendedOptimisation = true; + virtualHosts."rachel.cafe" = { + root = "${lib.rachelcafe.packages.x86_64-linux.default}"; + }; + }; + }; + hosts = [ "rachel.cafe" ]; + volumes = []; +} diff --git a/services/gitea.nix b/services/gitea.nix index 6dc14f2..c95b486 100644 --- a/services/gitea.nix +++ b/services/gitea.nix @@ -20,6 +20,9 @@ ROOT_URL = "http://localhost/"; HTTP_PORT = 3001; }; + settings.actions = { + ENABLED = true; + }; }; services.openssh = { @@ -45,7 +48,7 @@ http = 3001; forward = [ { container = 22; host = 22; proto = "tcp"; } ]; }; - hosts = [ "localhost" ]; + hosts = [ "githug.xyz" ]; volumes = [{ name = "gitea-statedir"; mountPoint = "/var/lib/gitea";