fix(magicmirror2): add some default config (#4437)
* chore(magicmirror2): add some options * add ui * pre-com * some changes * no defaultMode * ports
This commit is contained in:
@@ -28,34 +28,6 @@ questions:
|
|||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
- variable: language
|
|
||||||
label: Language
|
|
||||||
description: The language of the interface.
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: en
|
|
||||||
- variable: time_format
|
|
||||||
label: Time Format
|
|
||||||
description: The form of time notation that will be used
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: "24"
|
|
||||||
enum:
|
|
||||||
- value: "24"
|
|
||||||
description: "24"
|
|
||||||
- value: "12"
|
|
||||||
description: "12"
|
|
||||||
- variable: units
|
|
||||||
label: Units
|
|
||||||
description: The units that will be used in the default weather modules.
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: metrics
|
|
||||||
enum:
|
|
||||||
- value: metrics
|
|
||||||
description: metrics
|
|
||||||
- value: imperial
|
|
||||||
description: imperial
|
|
||||||
# Include{serviceRoot}
|
# Include{serviceRoot}
|
||||||
- variable: main
|
- variable: main
|
||||||
label: Main Service
|
label: Main Service
|
||||||
|
|||||||
@@ -25,20 +25,22 @@ data:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
|
/*************** DO NOT CHANGE FOLLOWING VALUES ***************/
|
||||||
address: "0.0.0.0",
|
address: "0.0.0.0",
|
||||||
port: {{ .Values.service.main.ports.main.port }},
|
port: {{ .Values.service.main.ports.main.targetPort }},
|
||||||
ipWhitelist: [], // Set [] to allow all IP addresses
|
useHttps: false,
|
||||||
// or add a specific IPv4 of 192.168.1.5 :
|
|
||||||
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
|
|
||||||
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
|
|
||||||
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
|
|
||||||
|
|
||||||
useHttps: false, // Support HTTPS or not, default "false" will use HTTP
|
|
||||||
|
|
||||||
language: {{ .Values.magicmirror.language | quote }},
|
|
||||||
timeFormat: {{ .Values.magicmirror.time_format | trimAll "\"" }},
|
|
||||||
units: {{ .Values.magicmirror.units | quote }},
|
|
||||||
serverOnly: "true",
|
serverOnly: "true",
|
||||||
|
/*************** EDIT THE BELOW THIS LINE ONLY ***************/
|
||||||
|
|
||||||
|
ipWhitelist: [], // Set [] to allow all IP addresses
|
||||||
|
// or add a specific IPv4 of 192.168.1.5 :
|
||||||
|
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
|
||||||
|
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
|
||||||
|
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
|
||||||
|
|
||||||
|
language: "en",
|
||||||
|
timeFormat: 24,
|
||||||
|
units: "metric",
|
||||||
|
|
||||||
modules: [
|
modules: [
|
||||||
{
|
{
|
||||||
@@ -105,7 +107,6 @@ data:
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||||
|
|||||||
@@ -14,9 +14,6 @@ podSecurityContext:
|
|||||||
magicmirror:
|
magicmirror:
|
||||||
force_update: false
|
force_update: false
|
||||||
force_update_modules: false
|
force_update_modules: false
|
||||||
language: en
|
|
||||||
time_format: "24"
|
|
||||||
units: metrics
|
|
||||||
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
@@ -39,20 +36,20 @@ service:
|
|||||||
main:
|
main:
|
||||||
port: 10590
|
port: 10590
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
|
targetPort: 10000
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
config:
|
config:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: /magicmirror2
|
mountPath: /magicmirror2
|
||||||
|
# Mounts a modified default config file to a "tmp" which the entrypoint,
|
||||||
|
# copies to the config location if it does not exist.
|
||||||
configfile:
|
configfile:
|
||||||
enabled: true
|
enabled: true
|
||||||
type: custom
|
type: configMap
|
||||||
mountPath: /magicmirror2/config/config.js
|
mountPath: /tmp/config.js
|
||||||
subPath: config.js
|
subPath: config.js
|
||||||
defaultMode: "0770"
|
objectName: '{{ printf "%s-magicmirror-config" (include "tc.common.names.fullname" .) }}'
|
||||||
volumeSpec:
|
|
||||||
configMap:
|
|
||||||
name: '{{ printf "%s-magicmirror-config" (include "tc.common.names.fullname" .) }}'
|
|
||||||
|
|
||||||
portal:
|
portal:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user