bugfix - rule creation failure on GUI
[holmes/rule-management.git] / rulemgt-standalone / src / main / assembly / nginx-http.conf
index 717d5cf..6c49c87 100644 (file)
@@ -1,9 +1,9 @@
 #user  nobody;
-worker_processes  1;
 
 error_log  logs/error.log;
 error_log  logs/error.log  notice;
 error_log  logs/error.log  info;
+#error_log  logs/error.log  debug;
 
 pid        logs/nginx.pid;
 
@@ -14,7 +14,7 @@ events {
 
 
 http {
-    include       mime.types;
+    include       ../mime.types;
     default_type  application/octet-stream;
 
     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
@@ -32,19 +32,19 @@ http {
         server_name  _;
 
         location / {
-            root   /usr/local/openresty/nginx/html;
+            root   /usr/share/nginx/html;
 
-            proxy_set_header Host $host;
+            proxy_set_header Host $proxy_host;
             proxy_set_header X-Real-IP $remote_addr;
             proxy_redirect off;
 
             if ($uri ~ "/api/holmes-rule-mgmt/(.*)") {
-                proxy_pass http://$host:9101$request_uri;
+                proxy_pass http://msb-iag.onap$request_uri;
                 break;
             }
 
             if ($uri ~ "/api/holmes-engine-mgmt/(.*)") {
-                proxy_pass http://$host:9102$request_uri;
+                proxy_pass http://msb-iag.onap$request_uri;
                 break;
             }
         }