feat: implement automated Ansible deployment workflows and secure Anthropic API key management via reverse proxy injection
All checks were successful
On Push to Main / test (push) Successful in 41s
On Push to Main / publish (push) Successful in 1m8s
On Push to Main / deploy-dev (push) Successful in 1m39s

This commit is contained in:
RaymondVerhoef
2026-05-17 10:00:14 +02:00
parent bb39a5fa71
commit e68335e159
9 changed files with 23 additions and 6 deletions

View File

@@ -16,10 +16,7 @@ export const anthropicApi = {
return await simulateResponse();
}
const apiKey = storage.get('admin:anthropic_key') || import.meta.env.VITE_ANTHROPIC_API_KEY;
if (!apiKey) {
throw new Error('No Anthropic API key found. Please configure it in Admin -> Settings.');
}
// The API key is now securely injected by the Caddy reverse proxy via environment variables.
// Model is configurable from Admin > Settings, defaults to the original spec model
const model = storage.get('admin:model') || DEFAULT_MODEL;
@@ -32,7 +29,6 @@ export const anthropicApi = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': apiKey,
'anthropic-version': '2023-06-01',
'anthropic-dangerous-direct-browser-access': 'true'
},