[CORD-1840] Fixing TOSCA grpc connection

Change-Id: Ife606f0c65717157a4ce57ad1c19ebeecde103ac
diff --git a/roles/cord-profile/templates/docker-compose.yml.j2 b/roles/cord-profile/templates/docker-compose.yml.j2
index a6e21b3..cd90765 100644
--- a/roles/cord-profile/templates/docker-compose.yml.j2
+++ b/roles/cord-profile/templates/docker-compose.yml.j2
@@ -140,6 +140,7 @@
       - xos_core:xos-core
     volumes:
       - {{ head_cord_profile_dir }}/xos-tosca.config.yaml:/opt/xos-tosca/src/xos-tosca.config.yaml
+      - {{ head_cord_profile_dir }}/im_cert_chain.pem:/usr/local/share/ca-certificates/local_certs.crt:ro
     depends_on:
       - xos_core
       - registrator
diff --git a/roles/cord-profile/templates/xos-tosca.config.yaml.j2 b/roles/cord-profile/templates/xos-tosca.config.yaml.j2
index 7b992ff..671200a 100644
--- a/roles/cord-profile/templates/xos-tosca.config.yaml.j2
+++ b/roles/cord-profile/templates/xos-tosca.config.yaml.j2
@@ -17,6 +17,21 @@
 
 
 name: xos-tosca
-grpc:
-  secure_endpoint: "xos-core.{{ site_suffix }}:50051"
-  insecure_endpoint: "xos-core.{{ site_suffix }}:50055"
+gprc_endpoint: "xos-core.{{ site_suffix }}"
+local_cert: /usr/local/share/ca-certificates/local_certs.crt
+logging:
+  version: 1
+  handlers:
+    console:
+      class: logging.StreamHandler
+    file:
+      class: logging.handlers.RotatingFileHandler
+      filename: /var/log/xos.log
+      maxBytes: 10485760
+      backupCount: 5
+  loggers:
+    '':
+      handlers:
+          - console
+          - file
+      level: DEBUG