Ikramullah, Ikram | 6cde0b3 | 2019-04-24 22:24:08 +0000 | [diff] [blame] | 1 | events { |
| 2 | worker_connections 768; |
| 3 | # multi_accept on; |
| 4 | } |
| 5 | |
| 6 | http { |
| 7 | # ... |
| 8 | upstream conductor_uwsgi { |
Krzysztof Opasiak | 1cddd1d | 2020-04-16 20:06:50 +0200 | [diff] [blame] | 9 | server 127.0.0.1:8080; |
Ikramullah, Ikram | 6cde0b3 | 2019-04-24 22:24:08 +0000 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | server { |
| 13 | |
amatthews | 379daac | 2022-08-18 15:31:12 +0100 | [diff] [blame] | 14 | {{ if (include "common.needTLS" .) }} |
Ikramullah, Ikram | 6cde0b3 | 2019-04-24 22:24:08 +0000 | [diff] [blame] | 15 | listen 8091 ssl; |
| 16 | server_name oof; |
krishnaa96 | 24a7ef3 | 2020-10-09 12:01:05 +0530 | [diff] [blame] | 17 | ssl_certificate /opt/bitnami/nginx/org.onap.oof.crt; |
krishnaa96 | dbcd1ca | 2020-08-11 10:26:50 +0530 | [diff] [blame] | 18 | ssl_certificate_key /opt/bitnami/nginx/ssl/local/org.onap.oof.key; |
krishnaa96 | 24a7ef3 | 2020-10-09 12:01:05 +0530 | [diff] [blame] | 19 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; |
Ikramullah, Ikram | 6cde0b3 | 2019-04-24 22:24:08 +0000 | [diff] [blame] | 20 | ssl_ciphers HIGH:!aNULL:!MD5; |
amatthews | 379daac | 2022-08-18 15:31:12 +0100 | [diff] [blame] | 21 | {{ else }} |
| 22 | listen 8091; |
| 23 | server_name oof; |
| 24 | {{ end }} |
Ikramullah, Ikram | 6cde0b3 | 2019-04-24 22:24:08 +0000 | [diff] [blame] | 25 | |
| 26 | location / { |
krishnaa96 | f47fe42 | 2020-07-17 19:21:18 +0530 | [diff] [blame] | 27 | include /opt/bitnami/nginx/conf/uwsgi_params; |
Ikramullah, Ikram | 6cde0b3 | 2019-04-24 22:24:08 +0000 | [diff] [blame] | 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 | } |