nginx.conf 1006 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. error_log /var/log/nginx/error.log notice;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include /etc/nginx/mime.types;
  7. default_type application/octet-stream;
  8. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  9. '$status $body_bytes_sent "$http_referer" '
  10. '"$http_user_agent" "$http_x_forwarded_for"';
  11. access_log /var/log/nginx/access.log main;
  12. sendfile on;
  13. #tcp_nopush on;
  14. keepalive_timeout 65;
  15. #gzip on;
  16. server {
  17. listen 80;
  18. location / {
  19. proxy_pass http://jugaralpadel:8000;
  20. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21. proxy_set_header Host $http_host;
  22. proxy_redirect off;
  23. client_max_body_size 100M;
  24. }
  25. location /static/ {
  26. alias /app/src/staticfiles/;
  27. }
  28. location /media/ {
  29. alias /app/src/mediafiles/;
  30. }
  31. }
  32. }