use new domain
This commit is contained in:
parent
c9ae8e70b3
commit
c4551c8fed
1 changed files with 19 additions and 3 deletions
22
forgejo.nix
22
forgejo.nix
|
|
@ -13,8 +13,8 @@
|
||||||
};
|
};
|
||||||
settings.service.DISABLE_REGISTRATION = true;
|
settings.service.DISABLE_REGISTRATION = true;
|
||||||
settings.server = {
|
settings.server = {
|
||||||
DOMAIN = "46.225.70.113";
|
DOMAIN = "forgejo.cordevelop.com";
|
||||||
ROOT_URL = "http://46.225.70.113:3000/";
|
ROOT_URL = "https://forgejo.cordevelop.com/";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
SSH_PORT = 2222;
|
SSH_PORT = 2222;
|
||||||
SSH_LISTEN_PORT = 2222;
|
SSH_LISTEN_PORT = 2222;
|
||||||
|
|
@ -22,5 +22,21 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 3000 2222 ];
|
security.acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = "freekcordemans@outlook.com";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."forgejo.cordevelop.com" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:3000";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 512M;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 3000 2222 ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue