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,40 +24,47 @@ in
programs.mosh.enable = true;
services.openssh.enable = true;
services = {
nginx = {
enable = true;
virtualHosts = {
"www.jrpotter.com" = {
forceSSL = true;
enableACME = true;
serverAliases = [ "jrpotter.com" ];
locations."/" = {
root = portfolio.packages.${system}.app;
};
};
"blog.jrpotter.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = blog.packages.${system}.app;
};
};
"bookshelf.jrpotter.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
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";
};
services.nginx = {
enable = true;
virtualHosts = {
"www.jrpotter.com" = {
forceSSL = true;
enableACME = true;
serverAliases = [ "jrpotter.com" ];
locations."/" = {
root = portfolio.packages.${system}.app;
};
};
"blog.jrpotter.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = blog.packages.${system}.app;
};
};
"bookshelf.jrpotter.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = bookshelf.packages.${system}.app;
};
};
};
};
system.stateVersion = "23.11";
}

View File

@ -23,17 +23,33 @@ in
programs.mosh.enable = true;
services.openssh.enable = true;
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
ensureDatabases = [ "boardwise" ];
authentication = lib.mkOverride 10 ''
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
host all all 127.0.0.1/32 trust
'';
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" ];
authentication = lib.mkOverride 10 ''
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
host all all 127.0.0.1/32 trust
'';
};
};
systemd.services.boardwise = {
@ -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";
}