[gbm-web] redirector: Drop X-Forwarded-Host as that's what confuses GitLab
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbm-web] redirector: Drop X-Forwarded-Host as that's what confuses GitLab
- Date: Thu, 29 Oct 2020 11:58:41 +0000 (UTC)
commit cb149a90e7638a6741bfcad7e340e8916275c056
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Thu Oct 29 12:58:23 2020 +0100
redirector: Drop X-Forwarded-Host as that's what confuses GitLab
redirector/Dockerfile | 2 +-
redirector/nginx.conf | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/redirector/Dockerfile b/redirector/Dockerfile
index fabed56..9105200 100644
--- a/redirector/Dockerfile
+++ b/redirector/Dockerfile
@@ -7,11 +7,11 @@ RUN apt-get update && apt-get install -y nginx-light curl && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log && \
apt-get clean && rm -rf /var/lib/apt/lists/*
-ADD nginx.conf /etc/nginx/nginx.conf
COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt && rm -f /requirements.txt
COPY ./ /app
+ADD nginx.conf /etc/nginx/nginx.conf
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
diff --git a/redirector/nginx.conf b/redirector/nginx.conf
index b76f697..f371999 100644
--- a/redirector/nginx.conf
+++ b/redirector/nginx.conf
@@ -41,7 +41,7 @@ http {
location / {
proxy_set_header Host teams.pages.gitlab.gnome.org;
- proxy_set_header X-Forwarded-For "";
+ proxy_set_header X-Forwarded-Host "";
proxy_pass https://teams.pages.gitlab.gnome.org:443/Releng/gnome-os-site/;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]