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;
13 worker_connections 1024;
18 include ../mime.types;
19 default_type application/octet-stream;
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"';
25 #access_log logs/access.log main;
31 ssl_session_cache shared:SSL:10m;
32 ssl_session_timeout 10m;
39 root /usr/share/nginx/html;
41 proxy_set_header Host $proxy_host;
42 proxy_set_header X-Real-IP $remote_addr;
45 if ($uri ~ "/api/holmes-rule-mgmt/(.*)") {
46 proxy_pass http://msb-iag.onap$request_uri;
50 if ($uri ~ "/api/holmes-engine-mgmt/(.*)") {
51 proxy_pass http://msb-iag.onap$request_uri;
56 location ~*.(htm|html){
57 add_header Cache-Control no-cache;
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;