Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

46 linhas
1.2 KiB

  1. # This is a custom nginx configuration file that we use in the container (instead of the default one),
  2. # because it allows us to run nginx with a non-root user.
  3. #
  4. # For this to work, the default vhost file (`/etc/nginx/conf.d/default.conf`) also needs to be removed.
  5. #
  6. # The following changes have been done compared to a default nginx configuration file:
  7. # - various temp paths are changed to `/tmp`, so that a non-root user can write to them
  8. # - the `user` directive was removed, as we don't want nginx to switch users
  9. worker_processes 1;
  10. error_log /var/log/nginx/error.log warn;
  11. pid /tmp/nginx.pid;
  12. events {
  13. worker_connections 1024;
  14. }
  15. http {
  16. proxy_temp_path /tmp/proxy_temp;
  17. client_body_temp_path /tmp/client_temp;
  18. fastcgi_temp_path /tmp/fastcgi_temp;
  19. uwsgi_temp_path /tmp/uwsgi_temp;
  20. scgi_temp_path /tmp/scgi_temp;
  21. include /etc/nginx/mime.types;
  22. default_type application/octet-stream;
  23. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  24. '$status $body_bytes_sent "$http_referer" '
  25. '"$http_user_agent" "$http_x_forwarded_for"';
  26. access_log /var/log/nginx/access.log main;
  27. sendfile on;
  28. #tcp_nopush on;
  29. keepalive_timeout 65;
  30. #gzip on;
  31. include /etc/nginx/conf.d/*.conf;
  32. }