# Docker Production
* adds further settings to create a production-ready docker configurationpull/109/head
parent
d9577fe6a1
commit
9cb9308f85
@ -0,0 +1,4 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf /etc/nginx/conf.d
|
@ -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/;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue