Added ACME terms and proxypass settings
This commit is contained in:
parent
f7e53c5294
commit
f620449ae6
|
@ -67,16 +67,27 @@
|
|||
locations."/".proxyPass = "http://localhost:3002/"; # Proxy Gitea
|
||||
};
|
||||
virtualHosts."git.mcwhirter.io" = { # Hostname to be redirected
|
||||
enableACME = true; # Use ACME certs
|
||||
forceSSL = true; # Force SSL
|
||||
locations."/".proxyPass = "http://localhost:3002/"; # Proxy Gitea
|
||||
globalRedirect = "source.mcwhirter.io"; # Redirect permanently to the host
|
||||
};
|
||||
virtualHosts."code.mcwhirter.io" = { # Hostname to be redirected
|
||||
enableACME = true; # Use ACME certs
|
||||
forceSSL = true; # Force SSL
|
||||
locations."/".proxyPass = "http://localhost:3002/"; # Proxy Gitea
|
||||
globalRedirect = "source.mcwhirter.io"; # Redirect permanently to the host
|
||||
};
|
||||
};
|
||||
|
||||
security.acme.certs = {
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
certs = {
|
||||
"code.mcwhirter.io".email = "craige@mcwhirter.io";
|
||||
"git.mcwhirter.io".email = "craige@mcwhirter.io";
|
||||
"source.mcwhirter.io".email = "craige@mcwhirter.io";
|
||||
};
|
||||
};
|
||||
|
||||
users.groups.keys.members = [ "gitea" ]; # Required due to NixOps issue #1204
|
||||
|
||||
|
|
Loading…
Reference in a new issue