Advertisement
BR_Gustavo

nginx.confsites

Jan 20th, 2022
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. # the upstream component nginx needs to connect to
  2. upstream django {
  3. server unix:///home/administrador/Desktop/prefeitura/sistema.sock;
  4. }
  5. # configuration of the server
  6. server {
  7. listen 0.0.0.0:8000;
  8. server_name projeto-inventario.ddns.net 127.0.0.1 192.168.0.10;
  9. charset utf-8;
  10. # max upload size
  11. client_max_body_size 75M;
  12. # Django media and static files
  13. location /media {
  14. alias /home/administrador/Desktop/prefeitura/media;
  15. }
  16. location /static {
  17. alias /home/administrador/Desktop/prefeitura/static;
  18. }
  19. # Send all non-media requests to the Django server.
  20. location / {
  21. uwsgi_pass django;
  22. include /home/administrador/Desktop/prefeitura/uwsgi_params;
  23. }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement