| 1234567891011121314151617181920212223242526272829303132 |
- # Upstream component nginx needs to connect to.
- upstream django {
- server unix:///opt/h0v1n8-website-env/website/website/webgui.sock; # For production file socket
- #server 127.0.0.1:8001; # Web port socket for use with uwsgi-hello-world-test.py
- }
- # Configuration of the server
- server {
- # the port your site will be served on
- listen 80;
- # the domain name it will serve for
- server_name _; # substitute your machine's IP address or FQDN
- charset utf-8;
- # max upload size
- client_max_body_size 75M; # adjust to taste
- # Django media
- #location /media {
- # alias /path/to/your/mysite/media; # your Django project's media files - amend as required
- #}
- location /static {
- alias /srv/www/static; # your Django project's static files - amend as required
- }
- # Finally, send all non-media requests to the Django server.
- location / {
- uwsgi_pass django;
- include /opt/rotbot-env/uwsgi_params; # the uwsgi_params file you installed
- }
- }
|