diff --git a/nginx.conf b/nginx.conf index afb9a1f..951280e 100644 --- a/nginx.conf +++ b/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/; } diff --git a/settings/settings.py b/settings/settings.py index 84019b7..ee5dfe1 100644 --- a/settings/settings.py +++ b/settings/settings.py @@ -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') \ No newline at end of file +NIMA_MODEL_PATH = os.path.join(BASE_DIR, 'neural_image_assessment', 'pretrained_model', 'nima_model.h5')