Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

67 satır
2.1 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. # This is a custom nginx configuration file that we use in the container (instead of the default one),
  3. # because it allows us to run nginx with a non-root user.
  4. #
  5. # For this to work, the default vhost file (`/etc/nginx/conf.d/default.conf`) also needs to be removed.
  6. #
  7. # The following changes have been done compared to a default nginx configuration file:
  8. # - various temp paths are changed to `/tmp`, so that a non-root user can write to them
  9. # - the `user` directive was removed, as we don't want nginx to switch users
  10. worker_processes {{ matrix_nginx_proxy_worker_processes }};
  11. error_log /var/log/nginx/error.log warn;
  12. pid /tmp/nginx.pid;
  13. {% for configuration_block in matrix_nginx_proxy_proxy_additional_configuration_blocks %}
  14. {{- configuration_block }}
  15. {% endfor %}
  16. events {
  17. worker_connections {{ matrix_nginx_proxy_worker_connections }};
  18. {% for configuration_block in matrix_nginx_proxy_proxy_event_additional_configuration_blocks %}
  19. {{- configuration_block }}
  20. {% endfor %}
  21. }
  22. http {
  23. proxy_temp_path /tmp/proxy_temp;
  24. client_body_temp_path /tmp/client_temp;
  25. fastcgi_temp_path /tmp/fastcgi_temp;
  26. uwsgi_temp_path /tmp/uwsgi_temp;
  27. scgi_temp_path /tmp/scgi_temp;
  28. include /etc/nginx/mime.types;
  29. default_type application/octet-stream;
  30. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  31. '$status $body_bytes_sent "$http_referer" '
  32. '"$http_user_agent" "$http_x_forwarded_for"';
  33. {% if matrix_nginx_proxy_access_log_enabled %}
  34. access_log /var/log/nginx/access.log main;
  35. {% else %}
  36. access_log off;
  37. {% endif %}
  38. proxy_connect_timeout {{ matrix_nginx_proxy_connect_timeout }};
  39. proxy_send_timeout {{ matrix_nginx_proxy_send_timeout }};
  40. proxy_read_timeout {{ matrix_nginx_proxy_read_timeout }};
  41. send_timeout {{ matrix_nginx_send_timeout }};
  42. sendfile on;
  43. #tcp_nopush on;
  44. keepalive_timeout 65;
  45. server_tokens off;
  46. #gzip on;
  47. {# Map directive needed for proxied WebSocket upgrades #}
  48. map $http_upgrade $connection_upgrade {
  49. default upgrade;
  50. '' close;
  51. }
  52. include /etc/nginx/conf.d/*.conf;
  53. }