Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

62 wiersze
1.8 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. sendfile on;
  39. #tcp_nopush on;
  40. keepalive_timeout 65;
  41. server_tokens off;
  42. #gzip on;
  43. {# Map directive needed for proxied WebSocket upgrades #}
  44. map $http_upgrade $connection_upgrade {
  45. default upgrade;
  46. '' close;
  47. }
  48. include /etc/nginx/conf.d/*.conf;
  49. }