nginx.conf.j2 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # For more information on configuration, see:
  2. # * Official English Documentation: http://nginx.org/en/docs/
  3. # * Official Russian Documentation: http://nginx.org/ru/docs/
  4. user nginx;
  5. worker_processes auto;
  6. error_log /var/log/nginx/error.log;
  7. pid /run/nginx.pid;
  8. # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
  9. include /usr/share/nginx/modules/*.conf;
  10. events {
  11. worker_connections 1024;
  12. }
  13. http {
  14. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  15. '$status $body_bytes_sent "$http_referer" '
  16. '"$http_user_agent" "$http_x_forwarded_for"';
  17. access_log /var/log/nginx/access.log main;
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 65;
  22. types_hash_max_size 2048;
  23. include /etc/nginx/mime.types;
  24. default_type application/octet-stream;
  25. # Load modular configuration files from the /etc/nginx/conf.d directory.
  26. # See http://nginx.org/en/docs/ngx_core_module.html#include
  27. # for more information.
  28. include /etc/nginx/conf.d/*.conf;
  29. server {
  30. listen 3200 default_server;
  31. listen [::]:3200 default_server;
  32. server_name server_ip;
  33. root /usr/share/nginx/html;
  34. # Load configuration files for the default server block.
  35. include /etc/nginx/default.d/*.conf;
  36. location / {
  37. proxy_pass http://prometheus_svc_ip;
  38. }
  39. error_page 404 /404.html;
  40. location = /40x.html {
  41. }
  42. error_page 500 502 503 504 /50x.html;
  43. location = /50x.html {
  44. }
  45. }
  46. # Settings for a TLS enabled server.
  47. #
  48. # server {
  49. # listen 443 ssl http2 default_server;
  50. # listen [::]:443 ssl http2 default_server;
  51. # server_name _;
  52. # root /usr/share/nginx/html;
  53. #
  54. # ssl_certificate "/etc/pki/nginx/server.crt";
  55. # ssl_certificate_key "/etc/pki/nginx/private/server.key";
  56. # ssl_session_cache shared:SSL:1m;
  57. # ssl_session_timeout 10m;
  58. # ssl_ciphers PROFILE=SYSTEM;
  59. # ssl_prefer_server_ciphers on;
  60. #
  61. # # Load configuration files for the default server block.
  62. # include /etc/nginx/default.d/*.conf;
  63. #
  64. # location / {
  65. # }
  66. #
  67. # error_page 404 /404.html;
  68. # location = /40x.html {
  69. # }
  70. #
  71. # error_page 500 502 503 504 /50x.html;
  72. # location = /50x.html {
  73. # }
  74. # }
  75. }