Commit Graph

25 Commits

Author SHA1 Message Date
22d66a06a4 fix(auth): apuntar Keycloak al Workspace como fuente única de autenticación
Backend:
- KEYCLOAK_SERVER_URL: http://keycloak:8080/kcauthhttps://workspace.aduanasoft.com/kcauth
- KEYCLOAK_CLIENT_ID: anexo76-backend → anexo76-frontend

Frontend (runtime):
- VITE_KEYCLOAK_URL: https://anexo76-dev.aduanasoft.com/kcauth/https://workspace.aduanasoft.com/kcauth
- KEYCLOAK_URL: http://keycloak:8080/kcauthhttps://workspace.aduanasoft.com/kcauth
- KEYCLOAK_CLIENT_ID: anexo76-backend → anexo76-frontend

Frontend (build):
- Jenkinsfile: VITE_KEYCLOAK_URL build-arg usa KC_URL en lugar de ${A76_URL}/kcauth/

Red:
- auth-net eliminada del servicio frontend y de la definición de networks
  (solo existía para comunicación con el Keycloak local ya removido)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22 12:16:56 -05:00
a40bfa61b6 Merge pull request 'fix/login-redirect-URL' (#439) from fix/login-redirect-URL into development
Reviewed-on: ADUANASOFT/anexo76#439
2026-05-22 14:24:02 +00:00
4da360e141 fix(deploy): corregir vars de producción que causaban localhost en KC URLs
docker-compose.prod.yml:
- Agrega SITE_URL=https://anexo76-dev.aduanasoft.com hardcodeado (no depende
  del .env raíz). resolveSystemBaseUrl() lo usa como fallback cuando
  ORIGIN tiene un valor localhost que pisó el default del compose.
- Agrega VITE_HUB_URL=https://workspace.aduanasoft.com para que
  getWorkspaceBaseUrl() no dependa de VITE_HUB_URL del .env raíz dev.
- Documenta el problema: root .env con ORIGIN=localhost pisa el default.

Dockerfile.prod:
- Agrega ARG/ENV VITE_KEYCLOAK_REALM (faltaba en los build-args de Jenkins).
- Agrega ARG/ENV VITE_HUB_URL con default workspace.aduanasoft.com.

.env.example raíz:
- Agrega advertencia sobre ORIGIN, VITE_HUB_URL y APP_PUBLIC_URL con
  instrucciones explícitas de cómo corregirlos en producción.
- Extrae estos valores al bloque documentado para que sean visibles.

Root cause: el deploy en producción ejecuta
  docker compose -f docker-compose.prod.yml up
  que carga automáticamente el .env raíz con ORIGIN=http://localhost:5173,
  pisando el default correcto del prod compose.
  url.origin en SvelteKit = localhost:5173 → redirect_uri con localhost.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22 08:58:29 -05:00
6ce3bccf85 refactor(docker): remove Keycloak and PostgreSQL services from production configuration
- Deleted PostgreSQL and Keycloak service definitions from docker-compose.prod.yml to streamline the deployment configuration.
- Updated README.md with new build arguments for API and Keycloak URLs.
- Adjusted Dockerfile.prod to ensure proper ownership for the application directory.

This change simplifies the production setup by removing unnecessary services.
2026-05-21 17:43:25 -05:00
d73c0dca83 fix: add ORIGIN environment variable for SvelteKit to prevent internal IP/port usage 2026-05-12 11:17:43 -05:00
42d7b876d1 feat: add environment variables for SMTP configuration and update hub-net to internal 2026-05-12 09:19:39 -05:00
9e3274b03a Update environment variables in docker-compose and refactor RLS context handling in database and middleware. Added error handling for Hub license verification. 2026-05-08 13:51:24 -05:00
edafbde59d fix/docker-compose-env-variables: remove DODA_API variables and clean up production configuration 2026-04-27 12:17:19 -05:00
c3e4cf22fc fix/env-api-unica 2026-04-27 11:08:33 -06:00
9d232998d6 feature/api-doda 2026-04-26 18:13:20 -06:00
9d63b000bc Refactor Docker entrypoints and remove unused scripts
- Removed custom entrypoint scripts for backend, frontend, and PostgreSQL services from docker-compose files.
- Added a new entrypoint script in the backend and frontend Dockerfiles to handle initialization without relying on host-mounted scripts.
- Updated Dockerfiles to ensure proper permissions for the new entrypoint scripts.
- Enhanced database initialization logic by moving schema and extension creation to the Alembic migration script.
2026-04-24 12:53:11 -05:00
8f4fd7ee90 feature/correcion-hash 2026-04-13 15:57:40 -06:00
9439a6a775 feature/minio-s3-integration 2026-04-02 13:35:18 -06:00
c565696242 feature/limpieza-periodica 2026-03-24 16:58:48 -06:00
AlexeerCT
a4cf394447 Update Docker Compose files for production environment and enhance unit of measure handling
- Changed the default environment variable from 'development' to 'production' in docker-compose.prod.yml and docker-compose.yml.
- Added SITAR API credentials to the environment variables in both Docker Compose files.
- Updated the seed data for customs units of measure to include a76_unit_code.
- Refactored the UnitOfMeasureCustoms model and related DTOs to replace scaii_unit_code with a76_unit_code for consistency.
- Adjusted frontend components to reflect the updated unit of measure structure and ensure proper handling of the new a76_unit_code field.
2026-03-15 20:52:01 -06:00
4302bd4655 feat: Update environment variables and improve Sitar API configuration 2026-03-03 12:58:00 -06:00
e4d4d0cce6 Puestas de seguridad y limpieza de codigo 2026-02-25 10:34:11 -06:00
17c1ef3947 Nuevo start con interaccion para elegir que tipo de servidor estamos 2026-02-23 12:15:44 -06:00
2a82215a6a feat(docker): add SITAR API environment variables and configure backend uploads volume 2026-01-23 14:01:03 -06:00
beb32088b8 fix(docker): update celery worker container name and add valkey service 2026-01-23 12:19:57 -06:00
AlexeerCT
e554c4fca3 feat: Refactor logging in exchange rate API and remove unnecessary console statements in various components 2026-01-02 12:28:44 -06:00
AlexeerCT
97b3ea52bc feat: Update environment variables and Docker configurations for production setup 2025-12-31 10:37:23 -06:00
AlexeerCT
69bf0c472b Refactor middleware import path, update Docker configurations, and normalize API base URL 2025-12-26 14:21:00 -06:00
AlexeerCT
3409d0a163 Update Keycloak server URL to include /kcauth in configuration files 2025-12-26 12:03:47 -06:00
AlexeerCT
ae1cf83491 Add production setup and update Docker configurations
- Introduced a new docker-compose.prod.yml for production deployment.
- Updated docker-compose.yml to change backend port mapping.
- Added svelte-sonner dependency to frontend package.json.
- Created Dockerfile.prod for building the frontend application.
- Enhanced README.md with production deployment instructions.
2025-12-26 09:48:39 -06:00