This commit is contained in:
Rachel Lambda Samuelsson 2024-05-30 21:57:23 +02:00
parent 78f86cf6ad
commit 9a451889a3
2 changed files with 24 additions and 1 deletions

20
services/blog.nix Normal file
View File

@ -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 = [];
}

View File

@ -20,6 +20,9 @@
ROOT_URL = "http://localhost/"; ROOT_URL = "http://localhost/";
HTTP_PORT = 3001; HTTP_PORT = 3001;
}; };
settings.actions = {
ENABLED = true;
};
}; };
services.openssh = { services.openssh = {
@ -45,7 +48,7 @@
http = 3001; http = 3001;
forward = [ { container = 22; host = 22; proto = "tcp"; } ]; forward = [ { container = 22; host = 22; proto = "tcp"; } ];
}; };
hosts = [ "localhost" ]; hosts = [ "githug.xyz" ];
volumes = [{ volumes = [{
name = "gitea-statedir"; name = "gitea-statedir";
mountPoint = "/var/lib/gitea"; mountPoint = "/var/lib/gitea";