fix(monorepo-gerrit): Configure nginx reverse proxy correctly

Configures the reverse-proxy as per Gerrit's documentation at
https://gerrit-review.googlesource.com/Documentation/config-reverseproxy.html
This commit is contained in:
Vincent Ambo 2020-06-10 22:40:34 +00:00
parent 8ace1010bc
commit 1d40329609
2 changed files with 9 additions and 3 deletions

View file

@ -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;
}
'';
};