feat(nextcloud): set default phone region (#3578)
* feat(nextcloud): set default phone region * empty line
This commit is contained in:
@@ -37,7 +37,7 @@ sources:
|
|||||||
- https://github.com/nextcloud/docker
|
- https://github.com/nextcloud/docker
|
||||||
- https://github.com/nextcloud/helm
|
- https://github.com/nextcloud/helm
|
||||||
type: application
|
type: application
|
||||||
version: 15.2.45
|
version: 15.2.46
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- cloud
|
- cloud
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# Input Validation
|
||||||
|
|
||||||
|
**`Default Phone Region`**
|
||||||
|
Accepted formats are:
|
||||||
|
|
||||||
|
- 2x Capital Letters (eg. `US`)
|
||||||
|
|
||||||
|
Regex used to match this: `^[A-Z]{2}$`
|
||||||
|
You can try live [here](https://regex101.com/r/qf1Lti/1)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
_If you find a field that you think it needs validation, please open an issue on github_
|
||||||
@@ -67,6 +67,20 @@ questions:
|
|||||||
required: true
|
required: true
|
||||||
$ref:
|
$ref:
|
||||||
- "definitions/nodeIP"
|
- "definitions/nodeIP"
|
||||||
|
- variable: nextcloud
|
||||||
|
group: "Container Configuration"
|
||||||
|
label: "Nextcloud Configuration"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: default_phone_region
|
||||||
|
label: "Default Phone Region"
|
||||||
|
description: "Sets the default phone region in ISO_3166-1 format (e.g. US). https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
valid_chars: '^[A-Z]{2}$'
|
||||||
|
default: ""
|
||||||
- variable: imaginary
|
- variable: imaginary
|
||||||
group: "Container Configuration"
|
group: "Container Configuration"
|
||||||
label: "Preview Generation Configuration"
|
label: "Preview Generation Configuration"
|
||||||
|
|||||||
@@ -117,6 +117,11 @@ command:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
php /var/www/html/occ config:system:set overwrite.cli.url --value='{{ $url }}'
|
php /var/www/html/occ config:system:set overwrite.cli.url --value='{{ $url }}'
|
||||||
|
|
||||||
|
# Set default phone region
|
||||||
|
{{- with .Values.nextcloud.default_phone_region | upper }}
|
||||||
|
php /var/www/html/occ config:system:set default_phone_region --value='{{ . }}'
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
until $(curl --output /dev/null --silent --head --fail -H "Host: test.fakedomain.dns" http://127.0.0.1:7867/push/test/cookie); do
|
until $(curl --output /dev/null --silent --head --fail -H "Host: test.fakedomain.dns" http://127.0.0.1:7867/push/test/cookie); do
|
||||||
echo "High Performance Backend not running ... waiting..."
|
echo "High Performance Backend not running ... waiting..."
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|||||||
@@ -397,6 +397,10 @@ cronjob:
|
|||||||
hpb:
|
hpb:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
nextcloud:
|
||||||
|
# https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
|
||||||
|
default_phone_region: ""
|
||||||
|
|
||||||
imaginary:
|
imaginary:
|
||||||
enabled: true
|
enabled: true
|
||||||
preview_max_x: 2048
|
preview_max_x: 2048
|
||||||
|
|||||||
Reference in New Issue
Block a user