From 6da33305e5e57c6edcded3499a5b62fd1cf866d1 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Thu, 28 Jun 2018 15:45:45 -0400 Subject: [PATCH] Added API_SECRET allowing for mobile app access --- templates/InvoiceNinja/0/docker-compose.yml | 6 ++++++ templates/InvoiceNinja/0/rancher-compose.yml | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/templates/InvoiceNinja/0/docker-compose.yml b/templates/InvoiceNinja/0/docker-compose.yml index ab87768..98943e8 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)}} + API_SECRET: ${MOBILE_APP_SECRET} +{{- end}} {{- if (.Values.GMAPS_KEY)}} GOOGLE_MAPS_API_KEY: ${GMAPS_KEY} {{- end}} @@ -50,6 +53,9 @@ services: DB_DATABASE: ninja_db DB_USERNAME: ninja DB_PASSWORD: ninjaPass +{{- if (.Values.GMAPS_KEY)}} + API_SECRET: ${MOBILE_APP_SECRET} +{{- end}} {{- if (.Values.GMAPS_KEY)}} GOOGLE_MAPS_API_KEY: ${GMAPS_KEY} {{- end}} diff --git a/templates/InvoiceNinja/0/rancher-compose.yml b/templates/InvoiceNinja/0/rancher-compose.yml index 7574186..f9ba481 100644 --- a/templates/InvoiceNinja/0/rancher-compose.yml +++ b/templates/InvoiceNinja/0/rancher-compose.yml @@ -67,10 +67,17 @@ catalog: - variable: "APP_KEY" label: "Encryption Key" description: | - A randomly generated 32-Character string which will be used for encryption. + A random 32-Character string which will be used for encryption. required: true type: password + - variable: "MOBILE_APP_SECRET" + label: "Mobile App Secret" + description: | + A random alphanumeric string required for allowing mobile app access. + required: false + type: password + - variable: "GMAPS_KEY" label: "Google Maps API Key" description: |