2
0

nginx.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. user www-data;
  2. worker_processes {{ .Env.NGINX_WORKER_PROCESSES | default "4" }};
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5. events {
  6. worker_connections {{ .Env.NGINX_WORKER_CONNECTIONS | default "768" }};
  7. # multi_accept on;
  8. }
  9. http {
  10. ##
  11. # Basic Settings
  12. ##
  13. sendfile on;
  14. tcp_nopush on;
  15. tcp_nodelay on;
  16. keepalive_timeout 65;
  17. types_hash_max_size 2048;
  18. server_tokens off;
  19. # server_names_hash_bucket_size 64;
  20. # server_name_in_redirect off;
  21. client_max_body_size 0;
  22. {{ if .Env.NGINX_RESOLVER }}
  23. resolver {{ .Env.NGINX_RESOLVER }};
  24. {{ end -}}
  25. include /etc/nginx/mime.types;
  26. types {
  27. # add support for wasm MIME type, that is required by specification and it is not part of default mime.types file
  28. application/wasm wasm;
  29. # add support for the wav MIME type that is requried to playback wav files in Firefox.
  30. audio/wav wav;
  31. }
  32. default_type application/octet-stream;
  33. ##
  34. # Logging Settings
  35. ##
  36. access_log /dev/stdout;
  37. error_log /dev/stderr;
  38. ##
  39. # Gzip Settings
  40. ##
  41. gzip on;
  42. gzip_types text/plain text/css application/javascript application/json;
  43. gzip_vary on;
  44. gzip_min_length 860;
  45. ##
  46. # Connection header for WebSocket reverse proxy
  47. ##
  48. map $http_upgrade $connection_upgrade {
  49. default upgrade;
  50. '' close;
  51. }
  52. ##
  53. # Virtual Host Configs
  54. ##
  55. include /config/nginx/site-confs/*;
  56. }
  57. daemon off;