feat(settings): Add runtime settings management, node & baremetal managers, and settings UI
This commit is contained in:
@@ -14,6 +14,13 @@ export class CloudflareConnector {
|
||||
|
||||
// init the instance
|
||||
public async init() {
|
||||
this.cloudflare = new plugins.cloudflare.CloudflareAccount(this.cloudlyRef.config.data.cfToken);
|
||||
const cloudflareToken = await this.cloudlyRef.settingsManager.getSetting('cloudflareToken');
|
||||
|
||||
if (!cloudflareToken) {
|
||||
console.log('warn', 'No Cloudflare token configured in settings. Cloudflare features will be disabled.');
|
||||
return;
|
||||
}
|
||||
|
||||
this.cloudflare = new plugins.cloudflare.CloudflareAccount(cloudflareToken);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user