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:
Stavros Kois 2022-08-09 13:16:13 +03:00 committed by GitHub
parent b02507d8a1
commit e1e07ea7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View File

@ -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_

View File

@ -21,10 +21,11 @@ questions:
attrs:
- variable: 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:
type: string
default: ""
valid_chars: '^http(s)?:\/\/.*:\d*$'
default: "http://SERVER_IP:32400"
- variable: ALLOWED_NETWORKS
label: "Allowed Networks"
description: "Networks allowed to connect to plex. Add your local network IP to this list"