forked from AtelierSoude/OpenRepairPlatform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |