Commit graph

19 commits

Author SHA1 Message Date
Gabriel Santana de Menezes
59a5c61585 feat: add MinIO image server and profile photo upload
Infrastructure: MinIO service added to docker-compose (prod + dev) with
minio-init container that creates the avatars bucket with public read
policy. Traefik routes minio.task.beetech.dev → port 9000.

Backend: native MinIO SDK integration via MinioStorageService;
UploadUserPhotoUseCase validates 5 MB limit and image content-type;
new POST /auth/profile/photo endpoint (multipart). All hardcoded
ui-avatars.com fallback URLs removed from 6 use cases — backend now
returns null when user has no photo.

Frontend: ProfilePage gains clickable avatar with camera overlay,
file picker, preview, and photo upload on save. UserAvatar gains
onError handler for broken URLs and xs size. OrganizationAdminPage
replaces hardcoded ui-avatars.com with UserAvatar component.

CI/CD: deploy-main.yml passes 5 new MinIO secrets to the server and
writes them to .env.production.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 18:01:59 -04:00
Gabriel Santana de Menezes
682280fefd chore: configurar domínios customizados task.beetech.dev e api.task.beetech.dev
- Frontend: remover basename '/frontend' do router
- Frontend: criar .env.production com VITE_API_URL
- Backend: remover root-path=/backend, atualizar CORS origins
- Docker Compose: atualizar Traefik labels para Host-based routing

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 11:14:07 -04:00
Gabriel Santana de Menezes
0a0228c93e fix health endpoint path and simplify traefik labels
- Remove leading slash from smallrye-health.root-path so the health
  endpoint resolves to /backend/q/status (relative to non-app root)
  instead of the unreachable absolute path /status
- Clean up docker-compose traefik labels (remove stale comments)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 21:46:42 -04:00
Gabriel Santana de Menezes
38b6ddcd5d add prefix on frontend 2026-05-13 21:03:14 -04:00
Gabriel Santana de Menezes
da444090ed gc 2026-05-13 20:19:41 -04:00
Gabriel Santana de Menezes
22d770bb1b refazendo sem traefik 2026-05-13 20:14:12 -04:00
Gabriel Santana de Menezes
be17dbd503 downgrade do traefik 2026-05-13 19:45:43 -04:00
Gabriel Santana de Menezes
c6b6cb3035 savepoint 2026-05-13 19:27:01 2026-05-13 19:27:01 -04:00
Gabriel Santana de Menezes
01e0b9ada6 https e ssl 2026-05-13 19:23:16 -04:00
Gabriel Santana de Menezes
b510246eb5 adicionando variaveis faltantes 2026-05-13 18:47:25 -04:00
Gabriel Santana de Menezes
080904cebc fix: loggin on traefik 2026-05-13 10:17:05 -04:00
Gabriel Santana de Menezes
eb8247881b update traefik 2026-05-13 09:17:46 -04:00
Gabriel Santana de Menezes
23ec0a9066 keys 2026-05-12 20:06:44 -04:00
Gabriel Santana de Menezes
983cfe4176 variaveis do backend 2026-05-12 20:06:44 -04:00
Gabriel Santana de Menezes
f2eb4918a8 adicionando network 2026-05-12 20:06:44 -04:00
Gabriel Santana de Menezes
7274a07263 downgrade postgres 2026-05-12 20:06:44 -04:00
Gabriel Santana de Menezes
df90385246 adicionando banco no docker prod e servicoes no local 2026-05-12 20:06:44 -04:00
Gabriel Santana de Menezes
37c350b805 fix: change abckend port 2026-05-12 20:06:44 -04:00
Gabriel Santana de Menezes
b87ab63ac2 chore: deploy 2026-05-12 20:06:44 -04:00