about summary refs log tree commit diff
path: root/ops/nixos/camden
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-06-10T22·40+0000
committerVincent Ambo <tazjin@google.com>2020-06-11T21·13+0000
commit1d403296099b28b45a60b1f6b87eb649a63430fe (patch)
treee660512da60c8fa7d7da7cc32a39535a9ccbbac5 /ops/nixos/camden
parent8ace1010bc56c6574f23c10f408d90c850f1573a (diff)
fix(monorepo-gerrit): Configure nginx reverse proxy correctly r/904
Configures the reverse-proxy as per Gerrit's documentation at
https://gerrit-review.googlesource.com/Documentation/config-reverseproxy.html
Diffstat (limited to 'ops/nixos/camden')
-rw-r--r--ops/nixos/camden/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/ops/nixos/camden/default.nix b/ops/nixos/camden/default.nix
index 41f4b318ae9c..c14a5c8f7553 100644
--- a/ops/nixos/camden/default.nix
+++ b/ops/nixos/camden/default.nix
@@ -411,6 +411,8 @@ in lib.fix(self: {
       extraConfig = ''
         location / {
           proxy_pass http://localhost:4778;
+          proxy_set_header  X-Forwarded-For $remote_addr;
+          proxy_set_header  Host $host;
         }
       '';
     };