Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # the upstream component nginx needs to connect to
- upstream django {
- server unix:///home/administrador/Desktop/prefeitura/sistema.sock;
- }
- # configuration of the server
- server {
- listen 0.0.0.0:8000;
- server_name projeto-inventario.ddns.net 127.0.0.1 192.168.0.10;
- charset utf-8;
- # max upload size
- client_max_body_size 75M;
- # Django media and static files
- location /media {
- alias /home/administrador/Desktop/prefeitura/media;
- }
- location /static {
- alias /home/administrador/Desktop/prefeitura/static;
- }
- # Send all non-media requests to the Django server.
- location / {
- uwsgi_pass django;
- include /home/administrador/Desktop/prefeitura/uwsgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement