Deploy inicial: API FastAPI + infra Podman/Caddy + docs
- App FastAPI (main.py, app/): rotas /health e /dados_retorno, middleware anti-scanner, logging configurado - Config via configs.json (Pydantic); segredos fora do codigo e do git (.gitignore) - Dockerfile (oracledb thin, HEALTHCHECK) + requirements.txt + .dockerignore - Deploy Podman/Quadlet + Caddy em deploy/ - Docs: CLAUDE.md + docs/ (arquitetura, deploy, known-issues) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
15c89c9038
22 changed files with 1397 additions and 0 deletions
26
configs.example.json
Normal file
26
configs.example.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"banco": {
|
||||
"user": "SEU_USUARIO_ORACLE",
|
||||
"password": "SUA_SENHA_ORACLE",
|
||||
"dns": "host:1521/service_name",
|
||||
"instant_client": ""
|
||||
},
|
||||
"holmes": {
|
||||
"token_api": "SEU_TOKEN_HOLMES",
|
||||
"usuario": "usuario_ou_email_do_holmes",
|
||||
"senha": "SENHA_DO_HOLMES"
|
||||
},
|
||||
"apollo": {
|
||||
"subscription_key": "",
|
||||
"ambiente": ""
|
||||
},
|
||||
"api": {
|
||||
"port": 7168,
|
||||
"ambiente": "homolog",
|
||||
"workers": 4
|
||||
},
|
||||
"docs": {
|
||||
"user": "usuario_docs",
|
||||
"password": "senha_docs"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue