Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / contrib / components / netbox / components / netbox-nginx / resources / config / nginx.conf
1 worker_processes 1;
2
3 events {
4     worker_connections 1024;
5 }
6
7 http {
8     include              /etc/nginx/mime.types;
9     default_type         application/octet-stream;
10     sendfile             on;
11     tcp_nopush           on;
12     keepalive_timeout    65;
13     gzip                 on;
14     server_tokens        off;
15     client_max_body_size 10M;
16
17     server {
18         listen      {{ .Values.service.internalPort }};
19         server_name {{ .Values.service.portName }};
20         access_log  off;
21
22         location /static/ {
23             alias /opt/netbox/netbox/static/;
24         }
25
26         location / {
27             proxy_pass http://netbox-app:8001;
28             proxy_set_header X-Forwarded-Host $http_host;
29             proxy_set_header X-Real-IP $remote_addr;
30             proxy_set_header X-Forwarded-Proto $scheme;
31             add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';
32         }
33     }
34 }