@@ -3,13 +3,16 @@ name: navi
33container_image : registry.runnable.com/runnable/{{ name }}
44container_tag : " {{ git_branch }}"
55repo : git@github.com:CodeNow/{{ name }}.git
6- hosted_ports : [ "{{ navi_port }}" ]
6+ hosted_ports : [ "{{ navi_http_port }}", "{{ navi_https_port }}" ]
77node_version : " 4.2.4"
88npm_version : " 2.8.3"
99
1010redis_ca_cert_path : /opt/ssl/{{ name }}/redis/ca.pem
11+ content_domain_certs : /opt/ssl/{{ user_content_domain }}
12+
1113container_envs : >
1214 -e API_URL={{ api_url }}
15+ -e CERT_PATH={{ content_domain_certs }}
1316 -e COOKIE_DOMAIN=.{{ user_content_domain }}
1417 -e COOKIE_SECRET={{ navi_cookie_secret }}
1518 -e DATADOG_HOST={{ datadog_host_address }}
@@ -18,12 +21,9 @@ container_envs: >
1821 -e ENABLE_LRU_CACHE=1
1922 -e ERROR_URL=http://{{ detention_host_address }}:{{ detention_port }}
2023 -e HTTP_PORT={{ hosted_ports[0] }}
24+ -e HTTPS_PORT={{ hosted_ports[1] }}
2125 -e LOG_LEVEL_STDOUT=trace
2226 -e MONGO=mongodb://{{ navi_mongo_host_address }}:{{ navi_mongo_port }}/{{ navi_mongo_database }}
23- {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_APP_NAME={{ navi_new_relic_app_name }} {% endif %}
24- {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_LICENSE_KEY={{ new_relic_license_key }} {% endif %}
25- {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_LOG_LEVEL=fatal {% endif %}
26- {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_NO_CONFIG_FILE=true {% endif %}
2727 -e NODE_ENV={{ node_env }}
2828 -e RABBITMQ_HOSTNAME={{ rabbit_host_address }}
2929 -e RABBITMQ_PASSWORD={{ rabbit_password }}
@@ -32,12 +32,18 @@ container_envs: >
3232 -e REDIS_CACERT={{ redis_ca_cert_path }}
3333 -e REDIS_IPADDRESS={{ redis_host_address }}
3434 -e REDIS_PORT={{ redis_tls_port }}
35- {% if navi_intercom_app_id is defined %} -e INTERCOM_APP_ID={{ navi_intercom_app_id }} {% endif %}
3635 {% if navi_intercom_api_key is defined %} -e INTERCOM_API_KEY={{ navi_intercom_api_key }} {% endif %}
36+ {% if navi_intercom_app_id is defined %} -e INTERCOM_APP_ID={{ navi_intercom_app_id }} {% endif %}
37+ {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_APP_NAME={{ navi_new_relic_app_name }} {% endif %}
38+ {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_LICENSE_KEY={{ new_relic_license_key }} {% endif %}
39+ {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_LOG_LEVEL=fatal {% endif %}
40+ {% if navi_new_relic_app_name is defined %} -e NEW_RELIC_NO_CONFIG_FILE=true {% endif %}
3741
3842container_run_opts : >
3943 -h {{ name }}
4044 -d
4145 -p {{ hosted_ports[0] }}:{{ hosted_ports[0] }}
46+ -p {{ hosted_ports[1] }}:{{ hosted_ports[1] }}
4247 -v {{ redis_ca_cert_path }}:{{ redis_ca_cert_path }}
48+ -v {{ content_domain_certs }}:{{ content_domain_certs }}
4349 {{ container_envs }}
0 commit comments