...

Text file src/edge-infra.dev/config/pallets/sds/wireguard/store/base/nginx.conf

Documentation: edge-infra.dev/config/pallets/sds/wireguard/store/base

     1user  nginx;
     2worker_processes  1;
     3error_log  /var/log/nginx/error.log warn;
     4pid        /var/run/nginx.pid;
     5events {
     6    worker_connections  1024;
     7}
     8http {
     9    include       /etc/nginx/mime.types;
    10    default_type  application/octet-stream;
    11    log_format  main  '$remote_addr - $remote_user [$time_local] '
    12                    '"$request" $status $body_bytes_sent '
    13                    '"$http_referer" "$http_user_agent"'
    14                    ' Proxy host: "$proxy_host"'
    15                    ' Upstream address: "$upstream_addr"';
    16    access_log  /var/log/nginx/access.log  main;
    17    sendfile        on;
    18    keepalive_timeout  65;
    19    server {
    20    listen          80;
    21    location /novnc {
    22        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    23        proxy_set_header Host $host;
    24        proxy_set_header Connection "";
    25
    26        proxy_http_version 1.1;
    27        proxy_set_header Upgrade $http_upgrade;
    28        proxy_set_header Connection "upgrade";
    29        proxy_read_timeout 900s;
    30
    31        # SERVICE-NAME.NAMESPACE.svc.cluster.local
    32        proxy_pass http://novnc.vnc.svc.cluster.local/;
    33        # resolver kube-dns.kube-system.svc.cluster.local;
    34    }
    35    }
    36}

View as plain text