fix(plex): Adjust input validation for comma separated list (#3430)
This commit is contained in:
@@ -21,7 +21,7 @@ sources:
|
|||||||
- https://github.com/truecharts/charts/tree/master/charts/stable/plex
|
- https://github.com/truecharts/charts/tree/master/charts/stable/plex
|
||||||
- https://github.com/k8s-at-home/container-images/pkgs/container/plex
|
- https://github.com/k8s-at-home/container-images/pkgs/container/plex
|
||||||
type: application
|
type: application
|
||||||
version: 10.0.30
|
version: 10.0.31
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- media
|
- media
|
||||||
|
|||||||
@@ -1,15 +1,25 @@
|
|||||||
# Input Validation
|
# Input Validation
|
||||||
|
|
||||||
**`Advertise IP`**
|
**`Advertise IP`**
|
||||||
|
|
||||||
|
Accepts:
|
||||||
|
|
||||||
|
- `http://` or `https://`
|
||||||
|
- IP or DNS host
|
||||||
|
- Port is optional
|
||||||
|
- `,` Separated
|
||||||
|
|
||||||
Accepted formats are:
|
Accepted formats are:
|
||||||
|
|
||||||
- `https://192.168.1.100:32400`
|
- `https://192.168.1.100:32400`
|
||||||
- `https://192.168.1.100:32400`
|
- `https://192.168.1.100:32400`
|
||||||
- `http://dnsname:32400`
|
- `http://dnshost:32400`
|
||||||
- `https://dnsname:32400`
|
- `https://dnshost:32400`
|
||||||
|
- `https://dnshost`
|
||||||
|
- `https://dnshost,http://192.168.1.100:32400`
|
||||||
|
|
||||||
Regex used to match this: `^http(s)?:\/\/.*:\d*$`
|
Regex used to match this: `^(http(s)?:\/\/([a-z0-9.]*)(:\d{0,5})?,?)*$`
|
||||||
You can try live [here](https://regex101.com/r/3ehGWY/1)
|
You can try live [here](https://regex101.com/r/9GBtUh/1)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ questions:
|
|||||||
description: "IP to advertise to Plex, Change SERVER_IP to your actual server IP"
|
description: "IP to advertise to Plex, Change SERVER_IP to your actual server IP"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
valid_chars: '^http(s)?:\/\/.*:\d*$'
|
valid_chars: '^(http(s)?:\/\/([a-z0-9.]*)(:\d{0,5})?,?)*$'
|
||||||
required: true
|
required: true
|
||||||
default: "http://SERVER_IP:32400"
|
default: "http://SERVER_IP:32400"
|
||||||
- variable: ALLOWED_NETWORKS
|
- variable: ALLOWED_NETWORKS
|
||||||
|
|||||||
Reference in New Issue
Block a user