Finished ui design, system dependency installs, nginx config file generation

This commit is contained in:
Mike Young
2019-12-29 00:18:11 -05:00
parent f23a05a9db
commit 5456ea477d
7 changed files with 103 additions and 53 deletions

38
pyshelf_nginx.conf vendored
View File

@@ -1,38 +0,0 @@
# pyshelf_nginx.conf
upstream django {
# server unix:///path/to/your/mysite/mysite.sock; # for a file socket
server 127.0.0.1:8001; # for a web port socket (we'll use this first)
}
# configuration of the server
server {
listen 8000;
server_name 127.0.0.1; # substitute your machine's IP address or FQDN
charset utf-8;
client_max_body_size 75M; # adjust to taste
# Django media
location /media {
# your Django project's media files - amend as required
alias /home/raelon/Projects/pyShelf/frontend/interface/media;
}
location /static {
# your Django project's static files - amend as required
alias /home/raelon/Projects/pyShelf/frontend/interface/static;
}
location /books {
# Absolute location of your ebook files
internal;
alias /home/raelon/Projects/pyShelf/books;
}
# Finally, send all non-media requests to the Django server.
location / {
# the uwsgi_params file you installed
uwsgi_pass django;
include /home/raelon/Projects/pyShelf/uwsgi_params;
}
}