Skip to content

Commit

Permalink
Tdarr: Add configurable port bind for server
Browse files Browse the repository at this point in the history
  • Loading branch information
owine committed Dec 8, 2023
1 parent 7de61fe commit 841719c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions roles/tdarr/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@

tdarr_name: tdarr

################################
# Settings
################################

tdarr_server_port: "8266"
tdarr_server_external: false

################################
# Paths
################################
Expand Down Expand Up @@ -74,9 +81,10 @@ tdarr_docker_image_tag: "latest"
tdarr_docker_image: "haveagitgat/tdarr:{{ tdarr_docker_image_tag }}"

# Ports
tdarr_docker_ports_defaults: []
tdarr_docker_ports_defaults:
- "{{ tdarr_server_port }}:{{ tdarr_server_port }}"
tdarr_docker_ports_custom: []
tdarr_docker_ports: "{{ tdarr_docker_ports_defaults
tdarr_docker_ports: "{{ tdarr_docker_ports_defaults if (tdarr_server_external) else []
+ tdarr_docker_ports_custom }}"

# Envs
Expand All @@ -86,7 +94,7 @@ tdarr_docker_envs_default:
TZ: "{{ tz }}"
serverIP: "0.0.0.0"
webUIPort: "8265"
serverPort: "8266"
serverPort: "{{ tdarr_server_port }}"
internalNode: "true"
nodeIP: "0.0.0.0"
nodePort: "8267"
Expand Down

0 comments on commit 841719c

Please sign in to comment.