package com.hithomelabs.cftunnels.Config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; /** * Configuration class for Cloudflare API credentials. * *

Loads Cloudflare configuration from application properties * using the {@code cloudflare.*} prefix.

* *

Example configuration in application.properties:

*
 * cloudflare.account-id=your-account-id
 * cloudflare.api-key=your-api-key
 * cloudflare.email=your@email.com
 * 
* * @see Cloudflare API Documentation */ @Configuration @ConfigurationProperties(prefix = "cloudflare") public class CloudflareConfig { /** * Cloudflare account ID. * *

Found in the Cloudflare Dashboard under * Overview > Account ID

*/ private String accountId; /** * Cloudflare API Key. * *

Generated in Cloudflare Dashboard under * Profile > API Tokens > Global API Key

*/ private String apiKey; /** * Cloudflare account email. * *

The email address associated with your * Cloudflare account.

*/ private String email; // Getters and Setters public String getAccountId() { return accountId; } public void setAccountId(String accountId) { this.accountId = accountId; } public String getApiKey() { return apiKey; } public void setApiKey(String apiKey) { this.apiKey = apiKey; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } }