From ec9b55863286757d11f3ac2eb4a1d833ff906990 Mon Sep 17 00:00:00 2001 From: MartenBE Date: Thu, 30 Jul 2020 19:14:35 +0200 Subject: [PATCH] Forgot to add the pyshelf_nginx.conf file --- pyshelf_nginx.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pyshelf_nginx.conf diff --git a/pyshelf_nginx.conf b/pyshelf_nginx.conf new file mode 100644 index 0000000..17af138 --- /dev/null +++ b/pyshelf_nginx.conf @@ -0,0 +1,30 @@ +upstream django { + server unix:///tmp/pyshelf_wsgi.sock; +} + +server { + listen 8000; + server_name localhost; + access_log /var/log/nginx/pyshelf.access.log; + error_log /var/log/nginx/pyshelf.error.log; + charset utf-8; + client_max_body_size 75M; + + location /media { + root /pyshelf/src/interface; + } + + location /static { + root /pyshelf/src/interface; + } + + location /books { + internal; + alias /pyshelf; + } + + location / { + uwsgi_pass django; + include /pyshelf/uwsgi_params; + } +} \ No newline at end of file