blob: 9272e8581c5e50824a8bb2bef56f5bc583a88ed0 [file] [log] [blame]
Ikramullah, Ikram6cde0b32019-04-24 22:24:08 +00001events {
2 worker_connections 768;
3 # multi_accept on;
4}
5
6http {
7 # ...
8 upstream conductor_uwsgi {
Krzysztof Opasiak1cddd1d2020-04-16 20:06:50 +02009 server 127.0.0.1:8080;
Ikramullah, Ikram6cde0b32019-04-24 22:24:08 +000010 }
11
12 server {
13
amatthews379daac2022-08-18 15:31:12 +010014{{ if (include "common.needTLS" .) }}
Ikramullah, Ikram6cde0b32019-04-24 22:24:08 +000015 listen 8091 ssl;
16 server_name oof;
krishnaa9624a7ef32020-10-09 12:01:05 +053017 ssl_certificate /opt/bitnami/nginx/org.onap.oof.crt;
krishnaa96dbcd1ca2020-08-11 10:26:50 +053018 ssl_certificate_key /opt/bitnami/nginx/ssl/local/org.onap.oof.key;
krishnaa9624a7ef32020-10-09 12:01:05 +053019 ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
Ikramullah, Ikram6cde0b32019-04-24 22:24:08 +000020 ssl_ciphers HIGH:!aNULL:!MD5;
amatthews379daac2022-08-18 15:31:12 +010021{{ else }}
22 listen 8091;
23 server_name oof;
24{{ end }}
Ikramullah, Ikram6cde0b32019-04-24 22:24:08 +000025
26 location / {
krishnaa96f47fe422020-07-17 19:21:18 +053027 include /opt/bitnami/nginx/conf/uwsgi_params;
Ikramullah, Ikram6cde0b32019-04-24 22:24:08 +000028 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}