mirror of
https://github.com/maciej3031/comixify.git
synced 2026-03-11 08:54:35 +00:00
Add minor changes in conf
This commit is contained in:
parent
c0240d134b
commit
e9b3d2b4fc
3 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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/;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue