2024-11-20 05:46:39 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts = {
|
|
|
|
|
|
|
|
"hydra.nekover.se" = {
|
2024-11-20 05:46:39 +01:00
|
|
|
forceSSL = true;
|
2024-11-20 05:46:39 +01:00
|
|
|
enableACME = true;
|
|
|
|
listen = [{
|
2024-11-20 05:46:39 +01:00
|
|
|
addr = "127.0.0.1";
|
|
|
|
port = 1234;
|
|
|
|
}{
|
2024-11-20 05:46:39 +01:00
|
|
|
addr = "0.0.0.0";
|
|
|
|
port = 8443;
|
|
|
|
ssl = true;
|
2024-11-20 05:46:39 +01:00
|
|
|
proxyProtocol = true;
|
2024-11-20 05:46:39 +01:00
|
|
|
}];
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:3001";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"nix-cache.nekover.se" = {
|
2024-11-20 05:46:39 +01:00
|
|
|
forceSSL = true;
|
2024-11-20 05:46:39 +01:00
|
|
|
enableACME = true;
|
|
|
|
listen = [{
|
2024-11-20 05:46:39 +01:00
|
|
|
addr = "127.0.0.1";
|
|
|
|
port = 1234;
|
|
|
|
}{
|
2024-11-20 05:46:39 +01:00
|
|
|
addr = "0.0.0.0";
|
|
|
|
port = 8443;
|
|
|
|
ssl = true;
|
2024-11-20 05:46:39 +01:00
|
|
|
proxyProtocol = true;
|
2024-11-20 05:46:39 +01:00
|
|
|
}];
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:5005";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|