We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd67749 commit 8f70353Copy full SHA for 8f70353
build/hydra-proxy.nix
@@ -38,10 +38,22 @@
38
worker_processes auto;
39
'';
40
41
+ appendHttpConfig = ''
42
+ map $http_x_from $upstream {
43
+ default "anubis";
44
+ nix.dev-Uogho3gi "hydra-server";
45
+ }
46
+ '';
47
+
48
eventsConfig = ''
49
worker_connections 1024;
50
51
52
+ upstreams = {
53
+ anubis.servers."127.0.0.1:3001" = { };
54
+ hydra-server.servers."127.0.0.1:3000" = { };
55
+ };
56
57
virtualHosts."hydra.nixos.org" = {
58
forceSSL = true;
59
enableACME = true;
@@ -64,7 +76,7 @@
64
76
65
77
66
78
locations."/" = {
67
- proxyPass = "http://127.0.0.1:3001";
79
+ proxyPass = "http://$upstream";
68
80
};
69
81
70
82
locations."/static/" = {
0 commit comments