diff --git a/deployment/nginx/nginx-no-certificat.conf b/deployment/nginx/nginx-no-certificat.conf new file mode 100644 index 00000000..9394799c --- /dev/null +++ b/deployment/nginx/nginx-no-certificat.conf @@ -0,0 +1,34 @@ + +upstream openrepairplatform_uwsgi { + server openrepairplatform_python:8000; +} + +server { + listen 80; + server_name ${DOMAINE_NAME}; + location ~ /\. { deny all; access_log off; log_not_found off; } + + access_log /dev/stdout; + error_log /dev/stderr; + + location /static/ { + alias /srv/static/; + expires 100d; + add_header Cache-Control public; + access_log off; + } + + location /media/ { + alias /srv/media/; + expires 100d; + add_header Cache-Control public; + access_log off; + } + + location / { + uwsgi_pass openrepairplatform_uwsgi; + include uwsgi_params; + + client_max_body_size 20m; + } +} \ No newline at end of file