forgejo cert todo
This commit is contained in:
parent
d3cb19d6f1
commit
842e05de0d
4 changed files with 23 additions and 17 deletions
|
|
@ -10,18 +10,16 @@ in
|
|||
{
|
||||
|
||||
security.acme.certs."${config.networking.domain}".extraDomainNames = [
|
||||
"outline.${config.networking.domain}"
|
||||
"git.ktiu.net"
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts.${cfg.settings.server.DOMAIN} = {
|
||||
forceSSL = true;
|
||||
useACMEHost = config.networking.domain;
|
||||
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
||||
extraConfig = ''
|
||||
client_max_body_size 512M;
|
||||
'';
|
||||
};
|
||||
services.nginx.virtualHosts."${srv.DOMAIN}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = config.networking.domain;
|
||||
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
||||
extraConfig = ''
|
||||
client_max_body_size 512M;
|
||||
'';
|
||||
};
|
||||
|
||||
services.forgejo = {
|
||||
|
|
@ -37,11 +35,11 @@ in
|
|||
DOMAIN = "git.${config.networking.domain}";
|
||||
# You need to specify this to remove the port from URLs in the web UI.
|
||||
ROOT_URL = "https://${srv.DOMAIN}/";
|
||||
HTTP_PORT = 3000;
|
||||
HTTP_PORT = 3080;
|
||||
};
|
||||
|
||||
# You can temporarily allow registration to create an admin user.
|
||||
# service.DISABLE_REGISTRATION = true;
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
# Add support for actions, based on act: https://github.com/nektos/act
|
||||
|
||||
actions = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue