chore(plex): add valid_chars and docs (#3399)
* chore(plex): add valid_chars and docs * adapt to new questions template
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
# Input Validation
|
||||||
|
|
||||||
|
**`Advertise IP`**
|
||||||
|
Accepted formats are:
|
||||||
|
|
||||||
|
- `https://192.168.1.100:32400`
|
||||||
|
- `https://192.168.1.100:32400`
|
||||||
|
- `http://dnsname:32400`
|
||||||
|
- `https://dnsname:32400`
|
||||||
|
|
||||||
|
Regex used to match this: `^http(s)?:\/\/.*:\d*$`
|
||||||
|
You can try live [here](https://regex101.com/r/3ehGWY/1)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
_If you find a field that you think it needs validation, please open an issue on github_
|
||||||
@@ -21,10 +21,11 @@ questions:
|
|||||||
attrs:
|
attrs:
|
||||||
- variable: ADVERTISE_IP
|
- variable: ADVERTISE_IP
|
||||||
label: "Advertise IP"
|
label: "Advertise IP"
|
||||||
description: "IP to advertise to Plex"
|
description: "IP to advertise to Plex, Change SERVER_IP to your actual server IP"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
valid_chars: '^http(s)?:\/\/.*:\d*$'
|
||||||
|
default: "http://SERVER_IP:32400"
|
||||||
- variable: ALLOWED_NETWORKS
|
- variable: ALLOWED_NETWORKS
|
||||||
label: "Allowed Networks"
|
label: "Allowed Networks"
|
||||||
description: "Networks allowed to connect to plex. Add your local network IP to this list"
|
description: "Networks allowed to connect to plex. Add your local network IP to this list"
|
||||||
|
|||||||
Reference in New Issue
Block a user