hosts: dmz: nix-serve: add reverse proxy
This commit is contained in:
parent
cb7412e749
commit
2b30c68a54
@ -4,33 +4,40 @@
|
|||||||
services = {
|
services = {
|
||||||
hydra = {
|
hydra = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hydraURL = "hydra.home.opel-online.de";
|
hydraURL = "https://hydra.home.opel-online.de";
|
||||||
listenHost = "localhost";
|
listenHost = "localhost";
|
||||||
notificationSender = "hydra@localhost";
|
notificationSender = "hydra@localhost";
|
||||||
useSubstitutes = true;
|
useSubstitutes = true;
|
||||||
|
minimumDiskFree = 30;
|
||||||
};
|
};
|
||||||
nix-serve = {
|
nix-serve = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 5001;
|
port = 5001;
|
||||||
|
bindAddress = "127.0.0.1";
|
||||||
secretKeyFile = config.age.secrets."keys/nixsign".path;
|
secretKeyFile = config.age.secrets."keys/nixsign".path;
|
||||||
};
|
};
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${config.services.hydra.hydraURL}" = {
|
"hydra.home.opel-online.de" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "http://localhost:3000";
|
locations."/".proxyPass = "http://localhost:3000";
|
||||||
};
|
};
|
||||||
|
"cache.home.opel-online.de" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/".proxyPass = "http://localhost:5001";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
defaults.email = "webmaster@kabtop.de";
|
|
||||||
#defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
certs.${config.services.hydra.hydraURL} = {
|
defaults = {
|
||||||
|
email = "webmaster@kabtop.de";
|
||||||
|
#defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
dnsProvider = "netcup";
|
dnsProvider = "netcup";
|
||||||
environmentFile = config.age.secrets."services/acme/opel-online".path;
|
environmentFile = config.age.secrets."services/acme/opel-online".path;
|
||||||
webroot = null;
|
webroot = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user