Skip to content

Commit 29c7939

Browse files
authored
feat: add custom domain support for templates (#518)
2 parents 5e66f6c + 956e889 commit 29c7939

20 files changed

+275
-1
lines changed

api/templates/deploy-appwrite.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ variables:
4646
default: 80
4747
is_required: true
4848

49+
proxy_domain:
50+
type: "string"
51+
description: "Domain name for Appwrite (optional)"
52+
default: ""
53+
is_required: false
54+
4955
execution:
5056
run:
5157
- name: "Pull Appwrite image"
@@ -70,6 +76,14 @@ execution:
7076
- "{{ config_volume_name }}:/usr/src/code/appwrite"
7177
timeout: 600
7278

79+
- name: "Add proxy for Appwrite"
80+
type: "proxy"
81+
properties:
82+
action: "add"
83+
domain: "{{ proxy_domain }}"
84+
port: "{{ host_port }}"
85+
timeout: 30
86+
7387
validate:
7488
- name: "Check HTTP response from Appwrite"
7589
type: "command"

api/templates/deploy-beszel.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ variables:
4646
default: "beszel_data"
4747
is_required: true
4848

49+
proxy_domain:
50+
type: "string"
51+
description: "Domain name for Beszel (optional)"
52+
default: ""
53+
is_required: false
54+
4955
execution:
5056
run:
5157
- name: "Pull Beszel image"
@@ -69,6 +75,14 @@ execution:
6975
- "{{ data_volume_name }}:/beszel_data"
7076
timeout: 180
7177

78+
- name: "Add proxy for Beszel"
79+
type: "proxy"
80+
properties:
81+
action: "add"
82+
domain: "{{ proxy_domain }}"
83+
port: "{{ host_port }}"
84+
timeout: 30
85+
7286
validate:
7387
- name: "Check Beszel HTTP response"
7488
type: "command"

api/templates/deploy-blocky.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ variables:
5858
default: "blocky-config"
5959
is_required: true
6060

61+
proxy_domain:
62+
type: "string"
63+
description: "Domain name for Blocky web interface (optional)"
64+
default: ""
65+
is_required: false
66+
6167
execution:
6268
run:
6369
- name: "Pull Blocky image"
@@ -81,6 +87,14 @@ execution:
8187
- "{{ config_volume_name }}:/app/config.yml"
8288
timeout: 180
8389

90+
- name: "Add proxy for Blocky web interface"
91+
type: "proxy"
92+
properties:
93+
action: "add"
94+
domain: "{{ proxy_domain }}"
95+
port: "{{ web_port }}"
96+
timeout: 30
97+
8498
validate:
8599
- name: "Check Blocky web interface HTTP response"
86100
type: "command"

api/templates/deploy-code-server.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ variables:
8484

8585
proxy_domain:
8686
type: "string"
87-
description: "Proxy domain for Code Server (optional)"
87+
description: "Domain name for Code Server (optional)"
8888
default: ""
8989
is_required: false
9090

@@ -140,6 +140,14 @@ execution:
140140
- "{{ config_volume_name }}:/config"
141141
timeout: 300
142142

143+
- name: "Add proxy for Code Server"
144+
type: "proxy"
145+
properties:
146+
action: "add"
147+
domain: "{{ proxy_domain }}"
148+
port: "{{ host_port }}"
149+
timeout: 30
150+
143151
validate:
144152
- name: "Check Code Server HTTP response"
145153
type: "command"

api/templates/deploy-dashdot.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ variables:
5252
default: "/mnt/host"
5353
is_required: true
5454

55+
proxy_domain:
56+
type: "string"
57+
description: "Domain name for Dashdot (optional)"
58+
default: ""
59+
is_required: false
60+
5561
execution:
5662
run:
5763
- name: "Pull Dashdot image"
@@ -75,3 +81,11 @@ execution:
7581
volumes:
7682
- "{{ host_mount_path }}:{{ container_mount_path }}:ro"
7783
timeout: 180
84+
85+
- name: "Add proxy for Dashdot"
86+
type: "proxy"
87+
properties:
88+
action: "add"
89+
domain: "{{ proxy_domain }}"
90+
port: "{{ host_port }}"
91+
timeout: 30

api/templates/deploy-dashy.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ variables:
4646
default: "dashy-user-data"
4747
is_required: true
4848

49+
proxy_domain:
50+
type: "string"
51+
description: "Domain name for Dashy (optional)"
52+
default: ""
53+
is_required: false
54+
4955
execution:
5056
run:
5157
- name: "Pull Dashy image"
@@ -69,6 +75,14 @@ execution:
6975
- "{{ user_data_volume }}:/app/user-data"
7076
timeout: 180
7177

78+
- name: "Add proxy for Dashy"
79+
type: "proxy"
80+
properties:
81+
action: "add"
82+
domain: "{{ proxy_domain }}"
83+
port: "{{ host_port }}"
84+
timeout: 30
85+
7286
validate:
7387
- name: "Check HTTP response from Dashy"
7488
type: "command"

api/templates/deploy-dozzle.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ variables:
5858
default: "false"
5959
is_required: false
6060

61+
proxy_domain:
62+
type: "string"
63+
description: "Domain name for Dozzle (optional)"
64+
default: ""
65+
is_required: false
66+
6167
execution:
6268
run:
6369
- name: "Pull Dozzle image"
@@ -87,6 +93,14 @@ execution:
8793
- "{{ docker_socket_path }}:/var/run/docker.sock:ro"
8894
timeout: 180
8995

96+
- name: "Add proxy for Dozzle"
97+
type: "proxy"
98+
properties:
99+
action: "add"
100+
domain: "{{ proxy_domain }}"
101+
port: "{{ host_port }}"
102+
timeout: 30
103+
90104
validate:
91105
- name: "Check Dozzle HTTP response"
92106
type: "command"

api/templates/deploy-filebrowser.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ variables:
5252
default: "filebrowser_config"
5353
is_required: true
5454

55+
proxy_domain:
56+
type: "string"
57+
description: "Domain name for File Browser (optional)"
58+
default: ""
59+
is_required: false
60+
5561
execution:
5662
run:
5763
- name: "Pull File Browser image"
@@ -77,6 +83,14 @@ execution:
7783
- "{{ config_volume }}:/config"
7884
timeout: 180
7985

86+
- name: "Add proxy for File Browser"
87+
type: "proxy"
88+
properties:
89+
action: "add"
90+
domain: "{{ proxy_domain }}"
91+
port: "{{ host_port }}"
92+
timeout: 30
93+
8094
validate:
8195
- name: "Check HTTP response from File Browser"
8296
type: "command"

api/templates/deploy-firefly-iii.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ variables:
8888
default: "firefly_iii_upload"
8989
is_required: true
9090

91+
proxy_domain:
92+
type: "string"
93+
description: "Domain name for Firefly III (optional)"
94+
default: ""
95+
is_required: false
96+
9197
execution:
9298
run:
9399
- name: "Pull Firefly III image"
@@ -119,6 +125,14 @@ execution:
119125
- "{{ upload_volume_name }}:/var/www/html/storage/upload"
120126
timeout: 300
121127

128+
- name: "Add proxy for Firefly III"
129+
type: "proxy"
130+
properties:
131+
action: "add"
132+
domain: "{{ proxy_domain }}"
133+
port: "{{ host_port }}"
134+
timeout: 30
135+
122136
validate:
123137
- name: "Check Firefly III HTTP response"
124138
type: "command"

api/templates/deploy-homer.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ variables:
4646
default: "homer-config"
4747
is_required: true
4848

49+
proxy_domain:
50+
type: "string"
51+
description: "Domain name for Homer (optional)"
52+
default: ""
53+
is_required: false
54+
4955
execution:
5056
run:
5157
- name: "Pull Homer image"
@@ -69,6 +75,14 @@ execution:
6975
- "{{ config_volume_name }}:/www/assets"
7076
timeout: 180
7177

78+
- name: "Add proxy for Homer"
79+
type: "proxy"
80+
properties:
81+
action: "add"
82+
domain: "{{ proxy_domain }}"
83+
port: "{{ host_port }}"
84+
timeout: 30
85+
7286
validate:
7387
- name: "Check Homer HTTP response"
7488
type: "command"

0 commit comments

Comments
 (0)