apiVersion: v1
data:
  nginx.conf: |+

    user  nginx;
    worker_processes  1;

    error_log  /var/log/nginx/error.log warn;
    pid        /var/run/nginx.pid;


    events {
        worker_connections  1024;
    }

    stream {
        include /etc/nginx/conf.d/*.stream;
    }

    http {
        include       /etc/nginx/mime.types;
        default_type  application/octet-stream;

        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                          '$status $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for"';

        access_log  /var/log/nginx/access.log  main;

        sendfile        on;
        #tcp_nopush     on;

        keepalive_timeout  65;

        #gzip  on;

        include /etc/nginx/conf.d/*.conf;
    }

  default.conf: |+
    #proxy_buffers   4 256k;
    #proxy_busy_buffers_size   256k;
    server_names_hash_bucket_size 128;
    #chunked_transfer_encoding     off;
    client_max_body_size          50M;
    fastcgi_read_timeout          300;
    proxy_connect_timeout         300;
    proxy_send_timeout            300;
    proxy_read_timeout            300;
    send_timeout                  300;

    server {
        listen 81;
        access_log off;
        error_log off;

        location /probe {
            return 200;
        }
    }

  default.stream: |+

    server {
      listen 80;
      proxy_pass seq.monitoring:80;
    }

    server {
      listen 12201;
      proxy_pass seq.monitoring:12201;
    }

kind: ConfigMap
metadata:
  name: seq-proxy
  namespace: sirius-monitoring
