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: |