aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/oof/components/oof-has/resources/config/nginx.conf
diff options
context:
space:
mode:
authorkrishnaa96 <krishna.moorthy6@wipro.com>2020-08-11 10:26:50 +0530
committerkrishnaa96 <krishna.moorthy6@wipro.com>2020-09-16 18:34:44 +0530
commitdbcd1cacf9d08b2d17b569736effb389c6f99d13 (patch)
tree9a3af346400f6d7f0c30fc8813b2527b835f4134 /kubernetes/oof/components/oof-has/resources/config/nginx.conf
parent27aae18cdee00c873e3617a6a3b5fb2d294b9b98 (diff)
[OOF] Use certInitializer for OOF pods
Remove Hardcoded certificates from OOF Resturcture OOF charts Issue-ID: OPTFRA-803 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: Ibe886a44fcbf22bb3443fbb8ec8e37ddc7636ffe
Diffstat (limited to 'kubernetes/oof/components/oof-has/resources/config/nginx.conf')
-rw-r--r--kubernetes/oof/components/oof-has/resources/config/nginx.conf31
1 files changed, 31 insertions, 0 deletions
diff --git a/kubernetes/oof/components/oof-has/resources/config/nginx.conf b/kubernetes/oof/components/oof-has/resources/config/nginx.conf
new file mode 100644
index 0000000000..a6790164d8
--- /dev/null
+++ b/kubernetes/oof/components/oof-has/resources/config/nginx.conf
@@ -0,0 +1,31 @@
+events {
+ worker_connections 768;
+ # multi_accept on;
+}
+
+http {
+ # ...
+ upstream conductor_uwsgi {
+ server 127.0.0.1:8080;
+ }
+
+ server {
+
+ listen 8091 ssl;
+ server_name oof;
+ ssl_certificate /opt/bitnami/nginx/ssl/local/org.onap.oof.crt;
+ ssl_certificate_key /opt/bitnami/nginx/ssl/local/org.onap.oof.key;
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
+ ssl_ciphers HIGH:!aNULL:!MD5;
+
+ 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;
+ }
+ }
+}