From 7b68b34cbb019b5e6193034cc7ef123d21fdf8bc Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Thu, 28 Jun 2018 07:18:54 -0400 Subject: [PATCH] Google Maps Key now able to be easily entered --- templates/InvoiceNinja/0/docker-compose.yml | 6 ++++++ templates/InvoiceNinja/0/rancher-compose.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/templates/InvoiceNinja/0/docker-compose.yml b/templates/InvoiceNinja/0/docker-compose.yml index d7aae3b..ab87768 100644 --- a/templates/InvoiceNinja/0/docker-compose.yml +++ b/templates/InvoiceNinja/0/docker-compose.yml @@ -13,6 +13,9 @@ services: DB_DATABASE: ninja_db DB_USERNAME: ninja DB_PASSWORD: ninjaPass +{{- if (.Values.GMAPS_KEY)}} + GOOGLE_MAPS_API_KEY: ${GMAPS_KEY} +{{- end}} labels: {{- if (.Values.LABEL_KEY_VALUE)}} io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE} @@ -47,6 +50,9 @@ services: DB_DATABASE: ninja_db DB_USERNAME: ninja DB_PASSWORD: ninjaPass +{{- if (.Values.GMAPS_KEY)}} + GOOGLE_MAPS_API_KEY: ${GMAPS_KEY} +{{- end}} labels: {{- if (.Values.LABEL_KEY_VALUE)}} io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE} diff --git a/templates/InvoiceNinja/0/rancher-compose.yml b/templates/InvoiceNinja/0/rancher-compose.yml index 4b2d488..7574186 100644 --- a/templates/InvoiceNinja/0/rancher-compose.yml +++ b/templates/InvoiceNinja/0/rancher-compose.yml @@ -71,12 +71,12 @@ catalog: required: true type: password -# - variable: "GOOGLE_MAPS_KEY" -# label: "Google Maps API Key" -# description: | -# Temp -# required: false -# type: password + - variable: "GMAPS_KEY" + label: "Google Maps API Key" + description: | + Allows for the use of showing relavent location data for the "Javascript, Geocoding and Embed APIs". + required: false + type: password # - variable: "SSL_CERT" # label: "SSL Certificate"