kopia lustrzana https://github.com/cloudflare/wildebeest
MOW-101: update one-click deploy link
rodzic
196d6fa896
commit
44ecb1f8e4
|
@ -71,7 +71,7 @@ Wildebeest uses [Deploy to Workers](https://deploy.workers.cloudflare.com/) to a
|
|||
|
||||
**Click here to start the installation.**
|
||||
|
||||
[<img src="https://deploy.workers.cloudflare.com/button"/>](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/wildebeest&authed=true&fields={%22name%22:%22Zone%20ID%22,%22secret%22:%22CF_ZONE_ID%22,%22descr%22:%22Get%20your%20Zone%20ID%20from%20the%20Cloudflare%20Dashboard%22}&fields={%22name%22:%22Domain%22,%22secret%22:%22CF_DEPLOY_DOMAIN%22,%22descr%22:%22Domain%20on%20which%20your%20instance%20will%20be%20running%22}&fields={%22name%22:%22Instance%20title%22,%22secret%22:%22INSTANCE_TITLE%22,%22descr%22:%22Title%20of%20your%20instance%22}&fields={%22name%22:%22Administrator%20Email%22,%22secret%22:%22ADMIN_EMAIL%22,%22descr%22:%22An%20Email%20address%20that%20can%20be%20messaged%20regarding%20inquiries%20or%20issues%22}&fields={%22name%22:%22Instance%20description%22,%22secret%22:%22INSTANCE_DESCR%22,%22descr%22:%22A%20short,%20plain-text%20description%20of%20your%20instance%22})
|
||||
[<img src="https://deploy.workers.cloudflare.com/button"/>](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/wildebeest&authed=true&fields={%22name%22:%22Zone%20ID%22,%22secret%22:%22CF_ZONE_ID%22,%22descr%22:%22Get%20your%20Zone%20ID%20from%20the%20Cloudflare%20Dashboard%22}&fields={%22name%22:%22Domain%22,%22secret%22:%22CF_DEPLOY_DOMAIN%22,%22descr%22:%22Domain%20on%20which%20your%20instance%20will%20be%20running%22}&fields={%22name%22:%22Instance%20title%22,%22secret%22:%22INSTANCE_TITLE%22,%22descr%22:%22Title%20of%20your%20instance%22}&fields={%22name%22:%22Administrator%20Email%22,%22secret%22:%22ADMIN_EMAIL%22,%22descr%22:%22An%20Email%20address%20that%20can%20be%20messaged%20regarding%20inquiries%20or%20issues%22}&fields={%22name%22:%22Instance%20description%22,%22secret%22:%22INSTANCE_DESCR%22,%22descr%22:%22A%20short,%20plain-text%20description%20of%20your%20instance%22}&apiTokenTmpl=[{%22key%22:%22d1%22,%22type%22:%22edit%22},{%22key%22:%22page%22,%22type%22:%22edit%22},{%22key%22:%22images%22,%22type%22:%22edit%22},{%22key%22:%22access%22,%22type%22:%22edit%22},{%22key%22:%22workers_kv_storage%22,%22type%22:%22edit%22},{%22key%22:%22access_acct%22,%22type%22:%22read%22},{%22key%22:%22dns%22,%22type%22:%22edit%22},{%22key%22:%22workers_script%22,%22type%22:%22edit%22}]&apiTokenName=Wildebeest)
|
||||
|
||||
Please pay attention to all the steps involved in the installation process.
|
||||
|
||||
|
|
|
@ -28,8 +28,22 @@ const FIELDS = [
|
|||
},
|
||||
]
|
||||
|
||||
const API_TOKEN_TEMPLATE = JSON.stringify([
|
||||
{ key: 'd1', type: 'edit' },
|
||||
{ key: 'page', type: 'edit' },
|
||||
{ key: 'images', type: 'edit' },
|
||||
{ key: 'access', type: 'edit' },
|
||||
{ key: 'workers_kv_storage', type: 'edit' },
|
||||
{ key: 'access_acct', type: 'read' },
|
||||
{ key: 'dns', type: 'edit' },
|
||||
{ key: 'workers_script', type: 'edit' },
|
||||
])
|
||||
|
||||
const fields = FIELDS.map((x) => JSON.stringify(x))
|
||||
.map((v) => `fields=${v}`)
|
||||
.join('&')
|
||||
const url = new URL(`/?url=${PROJECT_URL}&authed=true&${fields}`, ONE_CLICK_BASE_URL)
|
||||
const url = new URL(
|
||||
`/?url=${PROJECT_URL}&authed=true&${fields}&apiTokenTmpl=${API_TOKEN_TEMPLATE}&apiTokenName=Wildebeest`,
|
||||
ONE_CLICK_BASE_URL
|
||||
)
|
||||
console.log(url.href)
|
||||
|
|
Ładowanie…
Reference in New Issue