fix(tdarr): fix env's for tdarr (#1153)

* try some fixes for tdarr's

* bump versions

* website does not like nested lists
This commit is contained in:
Stavros Kois
2021-10-17 12:16:35 +03:00
committed by GitHub
parent c225454f08
commit 2e50f91c93
9 changed files with 51 additions and 38 deletions

View File

@@ -22,4 +22,4 @@ sources:
- https://github.com/HaveAGitGat/Tdarr
- https://hub.docker.com/r/haveagitgat/tdarr_node
type: application
version: 0.0.1
version: 0.0.2

View File

@@ -87,11 +87,10 @@ questions:
schema:
type: string
required: true
$ref:
- "definitions/nodeIP"
default: "tdarr-node.ix-tdarr-node.svc.cluster.local"
- variable: nodePort
label: "nodePort"
description: "Sets the port of this node"
description: "Sets the port of this node."
schema:
type: int
required: true
@@ -625,6 +624,7 @@ questions:
description: "Path inside the container the storage is mounted"
schema:
show_if: [["type", "=", "hostPath"]]
required: true
type: hostpath
- variable: hostPathType
label: "hostPath Type"

View File

@@ -14,12 +14,12 @@ podSecurityContext:
runAsGroup: 0
env:
serverIP: "0.0.0.0"
serverPort: 8266
PUID: 568
nodeID: "myFirstTdarrNode"
nodeIP: "0.0.0.0"
nodePort: 8267
PUID: 568
serverIP: "0.0.0.0"
serverPort: 8266
service:
main:

View File

@@ -22,4 +22,4 @@ sources:
- https://github.com/HaveAGitGat/Tdarr
- https://hub.docker.com/r/haveagitgat/tdarr
type: application
version: 0.0.1
version: 0.0.2

View File

@@ -88,11 +88,11 @@ questions:
schema:
type: string
required: true
$ref:
- "definitions/nodeIP"
hidden: true
default: "localhost"
- variable: serverPort
label: "serverPort"
description: "Sets the server port."
description: "Sets the server's comm port."
schema:
type: int
required: true
@@ -865,6 +865,7 @@ questions:
description: "Path inside the container the storage is mounted"
schema:
show_if: [["type", "=", "hostPath"]]
required: true
type: hostpath
- variable: hostPathType
label: "hostPath Type"

View File

@@ -14,10 +14,10 @@ podSecurityContext:
runAsGroup: 0
env:
webUIPort: 8265
serverIP: "0.0.0.0"
serverPort: 8266
PUID: 568
serverIP: "localhost"
serverPort: 8266
webUIPort: 8265
service:
main:

View File

@@ -7,22 +7,22 @@ Accepted formats are:
- Multiple FQDN (eg. `cloud.mydomain.com|nextcloud.mydomain.com` or `mydomain.com|cname.mydomain.com`) - Each FQDN is separated with `|`
Each FQDN is split into parts
* Hostname (`cname`.domain.com) _Optional_
* Can have from 1 up to 127 levels deep cnames.
* Can contain [0-9], [a-z] and `-`.
* Must be at least 1 char and no longer than 63 chars.
* Must start with [a-z], [0-9].
* Must NOT end with `-`.
* Domain (cname.`domain`.com)
* Can contain [0-9], [a-z] and `-`.
* Must be at least 1 chars and no longer than 63 chars.
* Must start with [a-z], [0-9].
* Must NOT end with `-`.
* Top-Level-Domains (cname.domain.`com`)
* Can contain [0-9], [a-z] and `-`.
* Must be at least 2 chars and no longer than 63 chars.
* Must start with [a-z].
* Must NOT end with `-`.
__Hostname (`cname`.domain.com)__ _Optional_
* Can have from 1 up to 127 levels deep cnames.
* Can contain [0-9], [a-z] and `-`.
* Must be at least 1 char and no longer than 63 chars.
* Must start with [a-z], [0-9].
* Must NOT end with `-`.
__Domain (cname.`domain`.com)__
* Can contain [0-9], [a-z] and `-`.
* Must be at least 1 chars and no longer than 63 chars.
* Must start with [a-z], [0-9].
* Must NOT end with `-`.
__Top-Level-Domains (cname.domain.`com`)__
* Can contain [0-9], [a-z] and `-`.
* Must be at least 2 chars and no longer than 63 chars.
* Must start with [a-z].
* Must NOT end with `-`.
Regex used to match those: `^(([a-z\d](-?[a-z\d]){0,62})\.)*(([a-z\d](-?[a-z\d]){0,62})\.)([a-z](-?[a-z\d]){1,62})((\|((([a-z\d](-?[a-z\d]){0,62})\.)*(([a-z\d](-?[a-z\d]){0,62})\.)([a-z](-?[a-z\d]){1,62})))*)$`
You can try live [here](https://regex101.com/r/rIxhye/1)

View File

@@ -9,16 +9,20 @@ Make sure the Node and Server instances have the same media library and transcod
## Connecting Node with a Server
__If the node is running on the same cluster:__
__If the node is running on the same cluster with the tdarr server:__
Assuming the server is named as `tdarr`.
Assuming the node is named `tdarr-node` and server is named as `tdarr`.
* serverIP: tdarr-comm.ix-tdarr.svc.cluster.local
* serverPort: 8266 (The internal port used by the app)
* nodeIP: `tdarr-node.ix-tdarr-node.svc.cluster.local`
* serverIP: `tdarr-comm.ix-tdarr.svc.cluster.local`
* serverPort: `8266` (The internal port used by the app)
For more info on how to generate the internal dns, visit our website. Check the linking apps internally section on the manual.
For more info on how to generate the internal dns, visit our website [here](https://truecharts.org/manual/Quick-Start%20Guides/14-linking-apps/). Check the linking apps internally section on the manual.
__If the node is running on a different cluster or non-SCALE machine:__
__If the node is running on a different cluster or SCALE machine than the tdarr server:__
* serverIP: YOUR.HOST.SERVER.IP
* serverPort: 36152 (Default nodePort)
Assuming the node is named `tdarr-node`
* nodeIP: `tdarr-node.ix-tdarr-node.svc.cluster.local`
* serverIP: YOUR.ACTUALHOST.SERVER.IP
* serverPort: `36152` (Default nodePort)

View File

@@ -0,0 +1,8 @@
## Temp / Transcode cache
Tdarr uses the temp folder (trascode-cache, `/temp`) to store the encoded file (not chunks of it, but the whole file). It's recommended to __avoid__ mounting this folder to RAM.
If you encode a large file which will result in a 10GB file, this is the amount of RAM it will consume.
## Media folder mounts
Make sure the Node and Server instances have the same media library and transcode cache locations. In other words, the cache and library must be shared between the Node and Server.