@@ -53,6 +53,9 @@ settings:
5353 # - totp-secrets : TOTP secrets for 2FA
5454 # - mariadb-user : MariaDB username
5555 # - mariadb-password : MariaDB password
56+ # - api-token : API Bearer token
57+ # - api-username : API username, also require api-password
58+ # - api-password : API password, also require api-username
5659 existingSecret : " "
5760
5861 # ----- KUBERNETES INTEGRATION -----
@@ -141,6 +144,75 @@ settings:
141144 # TOTP secrets for two-factor authentication
142145 totpSecrets : " "
143146
147+ api :
148+ # Authentication settings
149+ # https://docs.bunkerweb.io/latest/api/#authentication
150+ # API Bearer Token
151+ # Leave Empty if using settings.existingSecret
152+ apiToken : " "
153+ # OR/AND API Username and Password
154+ # Leave Empty if using settings.existingSecret
155+ apiUsername : " "
156+ apiPassword : " "
157+ # OR/AND ConfigMap name that includes ACL based JSON File
158+ # https://docs.bunkerweb.io/latest/api/#permissions-acl
159+ apiAclBootstrapFile : " "
160+
161+ # API Configuration
162+ # https://docs.bunkerweb.io/latest/api/#configuration
163+ # Root path for the API
164+ rootPath : " "
165+ # URL for API documentation, set to an empty value to disable
166+ docsUrl : " /docs"
167+ # URL for ReDoc API documentation, set to an empty value to disable
168+ redocUrl : " /redoc"
169+ # URL for OpenAPI specification, set to an empty value to disable
170+ openApiUrl : " /openapi.json"
171+ # Forwarded allow IPs for correct client IP detection
172+ forwardedAllowIps : " *"
173+ # Whitelist configuration for API access
174+ whitelist :
175+ # Enable API whitelist functionality
176+ enabled : true
177+ # space-separated list of IPs/CIDR allowed to access the API
178+ whitelistIps : " 10.0.0.0/8"
179+
180+ # Rate limiting configuration for API access
181+ # https://docs.bunkerweb.io/latest/api/#rate-limiting
182+ rateLimit :
183+ # Enable request rate limiting
184+ enabled : true
185+ # Strategy: "fixed-window" or "moving-window" or "sliding-window"
186+ # https://limits.readthedocs.io/en/stable/strategies.html
187+ strategy : " fixed-window"
188+ # Rate limit per period,
189+ # Supported formats: "[10/seconde]", "[100/minute]", "[1000/day]"
190+ # https://limits.readthedocs.io/en/stable/quickstart.html#rate-limit-string-notation
191+ defaults : ["100/minute"]
192+
193+ # Ingress configuration for API access
194+ ingress :
195+ # Set to true to create an Ingress resource for the API
196+ enabled : false
197+
198+ # IngressClass name to use
199+ ingressClassName : " "
200+
201+ # Domain name for API access
202+ # Example: "bunkerweb-api.example.com"
203+ serverName : " "
204+
205+ # Path for API access (usually "/")
206+ serverPath : " /"
207+
208+ # Additional annotations for the Ingress resource
209+ # Example: {"cert-manager.io/cluster-issuer": "letsencrypt-prod"}
210+ extraAnnotations : {}
211+
212+ # Secret name containing TLS certificate
213+ # Leave empty to disable HTTPS
214+ tlsSecretName : " "
215+
144216# =============================================================================
145217# SERVICE CONFIGURATION
146218# =============================================================================
@@ -1023,6 +1095,67 @@ ui:
10231095 timeoutSeconds : 1
10241096 failureThreshold : 3
10251097
1098+ # =============================================================================
1099+ # EXTERNAL API COMPONENT
1100+ # =============================================================================
1101+ # External API for BunkerWeb that exposes REST interface for automation tools
1102+
1103+ api :
1104+ # Enable the external API
1105+ enabled : true
1106+
1107+ # Container image configuration
1108+ repository : bunkerity/bunkerweb-api
1109+ tag : 1.6.6
1110+ pullPolicy : Always
1111+
1112+ # Image pull secrets (overrides global setting)
1113+ imagePullSecrets : []
1114+
1115+ # Node selector (overrides global setting)
1116+ nodeSelector : {}
1117+
1118+ # Tolerations (overrides global setting)
1119+ tolerations : []
1120+
1121+ # Resource requests and limits
1122+ # RECOMMENDED: Uncomment and adjust for production
1123+ # resources:
1124+ # requests:
1125+ # cpu: "100m"
1126+ # memory: "256Mi"
1127+ # limits:
1128+ # cpu: "250m"
1129+ # memory: "512Mi"
1130+
1131+ # Additional pod annotations
1132+ podAnnotations : {}
1133+
1134+ # Additional pod labels
1135+ podLabels : {}
1136+
1137+ # Security context for API container
1138+ securityContext :
1139+ runAsUser : 101
1140+ runAsGroup : 101
1141+ allowPrivilegeEscalation : false
1142+ capabilities :
1143+ drop :
1144+ - ALL
1145+
1146+ # Additional environment variables
1147+ extraEnvs : []
1148+
1149+ # Liveness probe configuration
1150+ livenessProbe :
1151+ exec :
1152+ command :
1153+ - /usr/share/bunkerweb/helpers/healthcheck-api.sh
1154+ initialDelaySeconds : 30
1155+ periodSeconds : 5
1156+ timeoutSeconds : 1
1157+ failureThreshold : 3
1158+
10261159# =============================================================================
10271160# DATABASE (MARIADB) COMPONENT
10281161# =============================================================================
0 commit comments