Add minor changes in conf

This commit is contained in:
Maciej Pęśko 2018-08-28 00:15:49 +02:00
parent c0240d134b
commit e9b3d2b4fc
3 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,4 @@
version: '3'
version: '2.3'
services:
db:
@ -12,6 +12,7 @@ services:
web:
build: .
runtime: nvidia
volumes:
- .:/comixify
- static_volume:/comixify/static
@ -26,9 +27,9 @@ services:
tty: true
nginx:
image: nginx:1.13
image: nginx
ports:
- 8008:80
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/comixify/static

View file

@ -8,10 +8,10 @@ server {
client_max_body_size 50M;
location / {
# everything is passed to Gunicorn
proxy_pass http://hello_server;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
proxy_pass http://hello_server;
}
location /static/ {
alias /comixify/static/;

View file

@ -25,7 +25,7 @@ SECRET_KEY = 'secret_123'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['35.237.219.127']
# Application definition