aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/oof/components/oof-has/resources/config/nginx.conf
blob: 9272e8581c5e50824a8bb2bef56f5bc583a88ed0 (plain)
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
events {
        worker_connections 768;
        # multi_accept on;
}

http {
    # ...
    upstream conductor_uwsgi {
       server 127.0.0.1:8080;
    }

    server {

{{ if (include "common.needTLS" .) }}
        listen              8091 ssl;
        server_name         oof;
        ssl_certificate     /opt/bitnami/nginx/org.onap.oof.crt;
        ssl_certificate_key /opt/bitnami/nginx/ssl/local/org.onap.oof.key;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
        ssl_ciphers         HIGH:!aNULL:!MD5;
{{ else }}
        listen              8091;
        server_name         oof;
{{ end }}

        location / {
            include /opt/bitnami/nginx/conf/uwsgi_params;
            uwsgi_pass conductor_uwsgi;

            uwsgi_param Host $host;
            uwsgi_param X-Real-IP $remote_addr;
            uwsgi_param X-Forwarded-For $proxy_add_x_forwarded_for;
            uwsgi_param X-Forwarded-Proto $http_x_forwarded_proto;
        }
    }
}