summaryrefslogtreecommitdiff
path: root/templates/default/kubernetes/stream-site-cm.yml.j2
blob: 365de3fa6bde2d9c1fe5d606d3548b23f37fb19d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apiVersion: v1
kind: ConfigMap
metadata:
  namespace: {{ deploy.namespace }}
  name: stream-site-{{ deploy.stream }}
  labels:
    app: nginx
    type: stream-site
    stream: {{ deploy.stream }}
data:
  nginx.conf: |
    worker_processes 4;
    pid /srv/nginx.pid;
    error_log /dev/stderr notice;

    events {
      worker_connections 768;
      # multi_accept on;
    }

    http {
      sendfile on;
      tcp_nopush on;
      tcp_nodelay on;
      keepalive_timeout 65;
      types_hash_max_size 2048;

      server_names_hash_bucket_size 64;

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

      access_log /dev/null;

      server {
        listen 8080 default_server;
        listen [::]:8080 default_server;

        server_name _;

        root /srv/www;

        location /js/config.js {
          alias /srv/config/config.js;
        }
      }
    }