|
75 | 75 | - /etc/nginx/conf.d/backend/*.conf
|
76 | 76 | stream:
|
77 | 77 | include:
|
78 |
| - - /etc/nginx/conf.d/stream/*.conf |
| 78 | + - /etc/nginx/conf.d/streams/*.conf |
79 | 79 |
|
80 | 80 | nginx_config_status_enable: true
|
81 | 81 | nginx_config_status_backup: true
|
|
100 | 100 | servers:
|
101 | 101 | - address: 0.0.0.0:8081
|
102 | 102 | weight: 1
|
| 103 | + max_conns: 100 |
103 | 104 | max_fails: 3
|
104 | 105 | fail_timeout: 5s
|
| 106 | + backup: false |
| 107 | + down: false |
| 108 | + resolve: false |
105 | 109 | - name: backend_servers
|
106 | 110 | zone:
|
107 | 111 | name: backend_mem_zone
|
|
677 | 681 | nginx_config_stream_template_enable: true
|
678 | 682 | nginx_config_stream_template:
|
679 | 683 | - template_file: stream/default.conf.j2
|
680 |
| - conf_file_name: stream_default.conf |
681 |
| - conf_file_location: /etc/nginx/conf.d/stream |
682 |
| - backup: true |
683 |
| - network_streams: |
684 |
| - - listen: |
685 |
| - - ip: 0.0.0.0 |
686 |
| - port: 9090 |
687 |
| - opts: |
688 |
| - - udp |
689 |
| - proxy_pass: backend |
690 |
| - proxy_timeout: 3s |
691 |
| - proxy_connect_timeout: 1s |
692 |
| - proxy_protocol: false |
693 |
| - health_check_plus: false |
694 |
| - upstreams: |
695 |
| - - name: backend |
696 |
| - lb_method: least_conn |
697 |
| - zone_name: backend |
698 |
| - zone_size: 64k |
699 |
| - sticky_cookie: false |
700 |
| - servers: |
701 |
| - - address: 0.0.0.0 |
702 |
| - port: 9091 |
703 |
| - weight: 1 |
704 |
| - health_check: max_fails=1 fail_timeout=10s |
705 |
| - - address: 0.0.0.0 |
706 |
| - port: 9092 |
707 |
| - down: true |
708 |
| - - address: 0.0.0.0 |
709 |
| - port: 9083 |
710 |
| - backup: true |
| 684 | + deployment_location: /etc/nginx/conf.d/streams/stream_default.conf |
| 685 | + config: |
| 686 | + upstreams: |
| 687 | + - name: stream_upstream |
| 688 | + zone: |
| 689 | + name: stream_zone |
| 690 | + size: 64k |
| 691 | + least_conn: true |
| 692 | + servers: |
| 693 | + - address: 0.0.0.0:9091 |
| 694 | + weight: 1 |
| 695 | + max_conns: 100 |
| 696 | + max_fails: 3 |
| 697 | + fail_timeout: 5s |
| 698 | + backup: false |
| 699 | + down: false |
| 700 | + resolve: false |
| 701 | + core: |
| 702 | + preread_buffer_size: 16k |
| 703 | + preread_timeout: 30s |
| 704 | + proxy_protocol_timeout: 30s |
| 705 | + resolver_timeout: 30s |
| 706 | + tcp_nodelay: true |
| 707 | + variables_hash_bucket_size: 64 |
| 708 | + variables_hash_max_size: 1024 |
| 709 | + ssl: |
| 710 | + alpn: http/1.1 |
| 711 | + certificate: /etc/ssl/certs/molecule.crt |
| 712 | + certificate_key: /etc/ssl/private/molecule.key |
| 713 | + ciphers: |
| 714 | + - HIGH |
| 715 | + - "!aNull" |
| 716 | + - "!MD5" |
| 717 | + conf_command: Protocol TLSv1.2 |
| 718 | + ecdh_curve: auto |
| 719 | + handshake_timeout: 60s |
| 720 | + prefer_server_ciphers: false |
| 721 | + protocols: |
| 722 | + - TLSv1 |
| 723 | + - TLSv1.1 |
| 724 | + - TLSv1.2 |
| 725 | + session_cache: |
| 726 | + builtin: |
| 727 | + enable: true |
| 728 | + size: 20480 |
| 729 | + session_tickets: true |
| 730 | + session_timeout: 5m |
| 731 | + verify_client: false |
| 732 | + verify_depth: 1 |
| 733 | + proxy: |
| 734 | + bind: false |
| 735 | + buffer_size: 4k |
| 736 | + connect_timeout: 60s |
| 737 | + download_rate: 0 |
| 738 | + half_close: false |
| 739 | + next_upstream: true |
| 740 | + next_upstream_timeout: 0 |
| 741 | + next_upstream_tries: 0 |
| 742 | + protocol: false |
| 743 | + requests: 0 |
| 744 | + responses: 0 |
| 745 | + # session_drop: false # Only NGINX Plus |
| 746 | + ssl: false |
| 747 | + ssl_certificate: /etc/ssl/certs/molecule.crt |
| 748 | + ssl_certificate_key: /etc/ssl/private/molecule.key |
| 749 | + ssl_ciphers: HIGH |
| 750 | + ssl_conf_command: |
| 751 | + - Protocol TLSv1.2 |
| 752 | + ssl_name: $hostname |
| 753 | + ssl_protocols: TLSv1.2 |
| 754 | + ssl_server_name: false |
| 755 | + ssl_session_reuse: true |
| 756 | + ssl_verify: false |
| 757 | + ssl_verify_depth: 1 |
| 758 | + timeout: 10m |
| 759 | + upload_rate: 0 |
| 760 | + log: |
| 761 | + access: |
| 762 | + - path: /var/log/nginx/access_stream.log |
| 763 | + format: main |
| 764 | + buffer: 1m |
| 765 | + gzip: 5 |
| 766 | + flush: 10h |
| 767 | + if: $status |
| 768 | + format: |
| 769 | + - name: main |
| 770 | + format: | |
| 771 | + '$remote_addr - [$time_local] $status ' |
| 772 | + error_log: |
| 773 | + file: /var/log/nginx/error_stream.log |
| 774 | + level: notice |
| 775 | + open_log_file_cache: |
| 776 | + max: 1000 |
| 777 | + inactive: 20s |
| 778 | + min_uses: 2 |
| 779 | + valid: 1m |
| 780 | + servers: |
| 781 | + - core: |
| 782 | + listen: |
| 783 | + - address: 0.0.0.0 |
| 784 | + port: 9090 |
| 785 | + ssl: false |
| 786 | + proxy_protocol: false |
| 787 | + fastopen: 12 |
| 788 | + backlog: 511 |
| 789 | + rcvbuf: 512 |
| 790 | + sndbuf: 512 |
| 791 | + bind: false |
| 792 | + ipv6only: false |
| 793 | + reuseport: false |
| 794 | + so_keepalive: false |
| 795 | + proxy: |
| 796 | + pass: stream_upstream |
0 commit comments