Revert "Revert accidental docker->master merge"
This reverts commit db834b581e.
This commit is contained in:
4
nginx/Dockerfile
Normal file
4
nginx/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf /etc/nginx/conf.d
|
||||
20
nginx/nginx.conf
Normal file
20
nginx/nginx.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
upstream konova {
|
||||
server konova:8000;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
proxy_pass http://konova;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
alias /konova/static/;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user