nginx.conf.j2 581 B

12345678910111213141516171819202122232425262728
  1. worker_processes auto;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. sendfile on;
  9. keepalive_timeout 65;
  10. gzip on;
  11. include /usr/local/etc/nginx/sites/*.conf;
  12. server {
  13. listen 80;
  14. server_name {{ansible_hostname}}.local;
  15. root /usr/local/www/;
  16. include /usr/local/etc/nginx/locations/*.conf;
  17. error_page 500 502 503 504 /50x.html;
  18. location = /50x.html {
  19. root /usr/local/www/nginx-dist;
  20. }
  21. }
  22. }