initial commit
This commit is contained in:
commit
053d566288
8 changed files with 585 additions and 0 deletions
31
systems/common/services/forgejo.nix
Normal file
31
systems/common/services/forgejo.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts = {
|
||||
"forgejo.sysrq.ca" = {
|
||||
extraConfig = ''
|
||||
encode gzip
|
||||
|
||||
# Automatically handle HTTPS via Let’s Encrypt
|
||||
# Caddy will request and renew certs for immich.sysrq.ca
|
||||
|
||||
reverse_proxy http://192.168.0.60:3000 {
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 3000 ];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue