This commit is contained in:
2019-11-14 11:03:19 +01:00
commit 855727cb0d
32 changed files with 1108 additions and 0 deletions

View File

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

View File

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

View File

14
services/nginx/dev.conf Normal file
View File

@@ -0,0 +1,14 @@
server {
listen 80;
location / {
proxy_pass http://users:5000;
proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
}

14
services/nginx/prod.conf Normal file
View File

@@ -0,0 +1,14 @@
server {
listen 80;
location / {
proxy_pass http://users:5000;
proxy_redirect default;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
}