setup nginx docker

This commit is contained in:
2024-11-24 19:11:41 +00:00
parent d3a01fe93d
commit 16b4b6fcad
6 changed files with 68 additions and 18 deletions

4
nginx/Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM nginx:latest
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d

16
nginx/nginx.conf Normal file
View File

@@ -0,0 +1,16 @@
upstream bartool_ovh {
server web:8000;
}
server {
listen 80;
location / {
proxy_pass http://bartool_ovh;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
}