Include the `forgejo` service.

main
Joshua Potter 2023-12-23 14:27:04 -07:00
parent f0faf5d5d1
commit 9a9316b31f
2 changed files with 63 additions and 55 deletions

View File

@ -24,14 +24,8 @@ in
programs.mosh.enable = true;
services.openssh.enable = true;
security.acme = {
acceptTerms = true;
defaults.email = "jrpotter2112@gmail.com";
};
services.nginx = {
services = {
nginx = {
enable = true;
virtualHosts = {
"www.jrpotter.com" = {
@ -56,8 +50,21 @@ in
root = bookshelf.packages.${system}.app;
};
};
"git.jrpotter.com" = {
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:3000";
};
};
};
};
openssh.enable = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "jrpotter2112@gmail.com";
};
system.stateVersion = "23.11";
}

View File

@ -23,9 +23,24 @@ in
programs.mosh.enable = true;
services.openssh.enable = true;
services.postgresql = {
services = {
forgejo.enable = true;
nginx = {
enable = true;
virtualHosts = {
"www.boardwise.gg" = {
forceSSL = true;
enableACME = true;
serverAliases = [ "boardwise.gg" ];
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:4000";
};
};
};
};
openssh.enable = true;
postgresql = {
enable = true;
package = pkgs.postgresql_15;
ensureDatabases = [ "boardwise" ];
@ -35,6 +50,7 @@ in
host all all 127.0.0.1/32 trust
'';
};
};
systemd.services.boardwise = {
enable = true;
@ -66,20 +82,5 @@ in
defaults.email = "jrpotter2112@gmail.com";
};
services.nginx = {
enable = true;
virtualHosts = {
"www.boardwise.gg" = {
forceSSL = true;
enableACME = true;
serverAliases = [ "boardwise.gg" ];
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:4000";
};
};
};
};
system.stateVersion = "23.11";
}