bugfix - rule creation failure on GUI
[holmes/rule-management.git] / rulemgt-standalone / src / main / assembly / nginx-https.conf
1 #user  nobody;
2 worker_processes  1;
3
4 error_log  logs/error.log;
5 error_log  logs/error.log  notice;
6 error_log  logs/error.log  info;
7 #error_log  logs/error.log  debug;
8
9 pid        logs/nginx.pid;
10
11
12 events {
13     worker_connections  1024;
14 }
15
16
17 http {
18     include       ../mime.types;
19     default_type  application/octet-stream;
20
21     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
22                       '$status $body_bytes_sent "$http_referer" '
23                       '"$http_user_agent" "$http_x_forwarded_for"';
24
25     #access_log  logs/access.log  main;
26
27     sendfile        on;
28
29     keepalive_timeout  65;
30
31     ssl_session_cache   shared:SSL:10m;
32     ssl_session_timeout 10m;
33
34     server {
35         listen       9104 ssl;
36         server_name  _;
37
38         location / {
39             root   /usr/share/nginx/html;
40
41             proxy_set_header Host $proxy_host;
42             proxy_set_header X-Real-IP $remote_addr;
43             proxy_redirect off;
44
45             if ($uri ~ "/api/holmes-rule-mgmt/(.*)") {
46                 proxy_pass http://msb-iag.onap$request_uri;
47                 break;
48             }
49
50             if ($uri ~ "/api/holmes-engine-mgmt/(.*)") {
51                 proxy_pass http://msb-iag.onap$request_uri;
52                 break;
53             }
54         }
55
56         location ~*.(htm|html){
57             add_header Cache-Control no-cache;
58             root html;
59         }
60
61         ssl_certificate /etc/ssl/certs/holmes-frontend-selfsigned.crt;
62         ssl_certificate_key /etc/ssl/private/holmes-frontend.key;
63         ssl_dhparam /etc/ssl/certs/dhparam.pem;
64     }
65 }