Skip to content

Commit 34ace5d

Browse files
committed
add info about cloudflare api token
1 parent 0777300 commit 34ace5d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

subdomains/lang/en/strings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313
'create_subdomain' => 'Create Subdomain',
1414

1515
'name' => 'Name',
16+
17+
'api_token' => 'Cloudflare API Token',
18+
'api_token_help' => 'The token needs to have read permissions for Zone.Zone and write for Zone.Dns. For better security you can also set the "Zone Resources" to exclude certain domains and add the panel ip to the "Client IP Adress Filtering".',
1619
];

subdomains/src/SubdomainsPlugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ public function getSettingsForm(): array
3232
{
3333
return [
3434
TextInput::make('token')
35-
->label('Cloudflare API Token')
35+
->label(trans('subdomains::strings.api_token'))
3636
->required()
37+
->hintIcon('tabler-question-mark')
38+
->hintIconTooltip(trans('subdomains::strings.api_token_help'))
3739
->default(fn () => config('subdomains.token')),
3840
];
3941
}

0 commit comments

Comments
 (0)