Skip to content

Commit e2f5a6c

Browse files
committed
fix(script): Add support for serve config file
1 parent a2c7f58 commit e2f5a6c

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

docs/public/install-scripts/tailscale.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,9 @@
55
"changeLog": "Initial Script"
66
},
77
"requirements": {
8-
"locations": [
9-
"ApplicationsPerformance"
10-
],
11-
"specifications": [
12-
"2CORE",
13-
"200MB"
14-
],
15-
"permissions": [
16-
"READ_WRITE_LOCATIONS"
17-
]
8+
"locations": ["ApplicationsPerformance"],
9+
"specifications": ["2CORE", "200MB"],
10+
"permissions": ["READ_WRITE_LOCATIONS"]
1811
},
1912
"installation_questions": [
2013
{
@@ -42,7 +35,8 @@
4235
{
4336
"path": "$LOCATION(ApplicationsPerformance)/tailscale/state",
4437
"posix": true
45-
}
38+
},
39+
"$LOCATION(ApplicationsPerformance)/tailscale/config"
4640
],
4741
"app_values": {
4842
"tailscale": {
@@ -53,13 +47,22 @@
5347
"accept_dns": false,
5448
"userspace": true,
5549
"accept_routes": false,
56-
"advertise_exit_node": false
50+
"advertise_exit_node": false,
51+
"additional_envs": [
52+
{
53+
"name": "TS_SERVE_CONFIG",
54+
"value": "/config/serve.conf"
55+
}
56+
]
5757
},
5858
"network": {
5959
"host_network": true
6060
},
6161
"storage": {
62-
"state": "$HOST_PATH($LOCATION(ApplicationsPerformance)/tailscale/state)"
62+
"state": "$HOST_PATH($LOCATION(ApplicationsPerformance)/tailscale/state)",
63+
"additional_storage": [
64+
"$MOUNTED_HOST_PATH($LOCATION(ApplicationsPerformance)/tailscale/config, /config)"
65+
]
6366
},
6467
"resources": {
6568
"limits": {
@@ -68,4 +71,4 @@
6871
}
6972
}
7073
}
71-
}
74+
}

0 commit comments

Comments
 (0)