Skip to content

Commit

Permalink
add nginx no certificat
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemsP committed Jan 15, 2022
1 parent 93a8199 commit 30ca273
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions deployment/nginx/nginx-no-certificat.conf
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 30ca273

Please sign in to comment.