From 704051a5d7cb8bf3bcde9ad67befe8b2fb9ddacb Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Fri, 7 Apr 2017 11:28:38 +0200 Subject: [PATCH] Update readme.md - configureation of nginx --- readme.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/readme.md b/readme.md index a858f3e0..42b1f415 100644 --- a/readme.md +++ b/readme.md @@ -148,6 +148,16 @@ server { ssl_certificate_key /etc/nginx/ssl/nginx.key; + #configuration for static and media files hosted by nginx + location /media/ { + root /var/www/scheduling-system-files; + } + + location /static/ { + root /var/www/scheduling-system-files; + } + + location / { # checks for static file, if not found proxy to app proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -- GitLab