.
This commit is contained in:
parent
b8402a9049
commit
cfb31d3b01
4 changed files with 30 additions and 5 deletions
16
services/forgejo.nix
Normal file
16
services/forgejo.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 3000 ];
|
||||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
settings.service.DISABLE_REGISTRATION = true;
|
||||
settings.server = {
|
||||
DOMAIN = "forgejo.ellie.town";
|
||||
ROOT_URL = "https://forgejo.ellie.town/";
|
||||
HTTP_ADDR = "10.10.0.2";
|
||||
HTTP_PORT = 3000;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -69,6 +69,14 @@
|
|||
# };
|
||||
# };
|
||||
|
||||
virtualHosts."forgejo.ellie.town" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://10.10.0.2:3000";
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."irc.ellie.town" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue