Skip to content
Snippets Groups Projects
Commit 704051a5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Update readme.md - configureation of nginx

parent 9c4c8a76
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment