...
This commit is contained in:
4
services/nginx/Dockerfile
Normal file
4
services/nginx/Dockerfile
Normal 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
|
||||
4
services/nginx/Dockerfile-prod
Normal file
4
services/nginx/Dockerfile-prod
Normal 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
|
||||
0
services/nginx/__init__.py
Normal file
0
services/nginx/__init__.py
Normal file
14
services/nginx/dev.conf
Normal file
14
services/nginx/dev.conf
Normal 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
14
services/nginx/prod.conf
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user