Merge "[UUI] Service Mesh Compliance for UUI"
[oom.git] / kubernetes / oof / components / oof-has / resources / config / nginx.conf
1 events {
2         worker_connections 768;
3         # multi_accept on;
4 }
5
6 http {
7     # ...
8     upstream conductor_uwsgi {
9        server 127.0.0.1:8080;
10     }
11
12     server {
13
14 {{ if (include "common.needTLS" .) }}
15         listen              8091 ssl;
16         server_name         oof;
17         ssl_certificate     /opt/bitnami/nginx/org.onap.oof.crt;
18         ssl_certificate_key /opt/bitnami/nginx/ssl/local/org.onap.oof.key;
19         ssl_protocols       TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
20         ssl_ciphers         HIGH:!aNULL:!MD5;
21 {{ else }}
22         listen              8091;
23         server_name         oof;
24 {{ end }}
25
26         location / {
27             include /opt/bitnami/nginx/conf/uwsgi_params;
28             uwsgi_pass conductor_uwsgi;
29
30             uwsgi_param Host $host;
31             uwsgi_param X-Real-IP $remote_addr;
32             uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
33             uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
34         }
35     }
36 }