forked from prehistoric-systems/comixify
Add supporting config
This commit is contained in:
parent
06b2eac567
commit
0c43de6dea
2 changed files with 3 additions and 15 deletions
14
nginx.conf
14
nginx.conf
|
|
@ -6,16 +6,7 @@ upstream hello_server {
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443;
|
||||
server_name localhost;
|
||||
client_max_body_size 50M;
|
||||
ssl on;
|
||||
ssl_certificate /etc/letsencrypt/live/comixify.ii.pw.edu.pl/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/comixify.ii.pw.edu.pl/privkey.pem;
|
||||
location / {
|
||||
# everything is passed to Gunicorn
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
@ -27,10 +18,7 @@ server {
|
|||
proxy_read_timeout 300;
|
||||
send_timeout 300;
|
||||
}
|
||||
location ^~ /.well-known {
|
||||
allow all;
|
||||
root /data/letsencrypt/;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
alias /comixify/static/;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ with open(os.path.join(BASE_DIR, 'secretkey.txt')) as f:
|
|||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = os.environ.get('DEBUG') == 'true'
|
||||
|
||||
ALLOWED_HOSTS = ['35.241.250.34', 'comixify.ii.pw.edu.pl', 'localhost', '127.0.0.1']
|
||||
ALLOWED_HOSTS = ['35.233.41.32', '35.195.198.74', '35.241.250.34', 'comixify.ii.pw.edu.pl', 'localhost', '127.0.0.1']
|
||||
|
||||
# Application definition
|
||||
|
||||
|
|
@ -150,4 +150,4 @@ DEFAULT_STYLE_TRANSFER_MODE = 0
|
|||
COMIX_GAN_MODEL_PATH = os.path.join(BASE_DIR, 'ComixGAN', 'pretrained_models', 'generator_model.h5')
|
||||
MAX_FRAME_SIZE_FOR_STYLE_TRANSFER = 600
|
||||
|
||||
NIMA_MODEL_PATH = os.path.join(BASE_DIR, 'neural_image_assessment', 'pretrained_model', 'nima_model.h5')
|
||||
NIMA_MODEL_PATH = os.path.join(BASE_DIR, 'neural_image_assessment', 'pretrained_model', 'nima_model.h5')
|
||||
|
|
|
|||
Loading…
Reference in a new issue