You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

latest.conf 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. server {
  2. listen 80;
  3. server_name latest.oscarcommerce.com;
  4. set_real_ip_from 192.168.125.252;
  5. real_ip_header X-Forwarded-For;
  6. # Ensure only one domain
  7. if ($host != 'latest.oscarcommerce.com') {
  8. rewrite / $scheme://latest.oscarcommerce.com$request_uri permanent;
  9. }
  10. access_log /var/www/oscar/logs/latest/nginx_access.log;
  11. error_log /var/www/oscar/logs/latest/nginx_error.log;
  12. gzip on;
  13. gzip_proxied any;
  14. gzip_static on;
  15. gzip_types text/plain application/xml application/x-javascript text/javascript text/css application/x-json application/json;
  16. client_max_body_size 3M;
  17. keepalive_timeout 5;
  18. location =/robots.txt {
  19. root /var/www/oscar/builds/latest/sites/sandbox/public/static/;
  20. expires max;
  21. }
  22. location =/favicon.ico {
  23. root /var/www/oscar/builds/latest/sites/sandbox/public/static/oscar/;
  24. expires max;
  25. }
  26. location /media/ {
  27. alias /var/www/oscar/media/latest/;
  28. expires max;
  29. }
  30. location /static/ {
  31. root /var/www/oscar/builds/latest/sites/sandbox/public;
  32. expires max;
  33. }
  34. location / {
  35. uwsgi_pass unix:/var/www/oscar/run/latest/uwsgi.sock;
  36. uwsgi_send_timeout 5;
  37. include uwsgi_params;
  38. }
  39. }