Try de JWT Key en .Env con Secret de Gitea
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 9m24s
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 9m24s
This commit is contained in:
@@ -59,6 +59,14 @@ jobs:
|
|||||||
cd /opt/gestion-integral
|
cd /opt/gestion-integral
|
||||||
export DB_SA_PASSWORD='${{ secrets.DB_SA_PASSWORD_SECRET }}'
|
export DB_SA_PASSWORD='${{ secrets.DB_SA_PASSWORD_SECRET }}'
|
||||||
|
|
||||||
|
# --- Crear archivo .env ---
|
||||||
|
echo "Creando archivo de entorno .env ..."
|
||||||
|
# Usamos cat y un "here document" (<<ENV_FILE) para escribir el contenido.
|
||||||
|
# Gitea reemplazará el secreto aquí.
|
||||||
|
cat <<ENV_FILE > .env
|
||||||
|
JWT_KEY=${{ secrets.JWT_KEY_SECRET }}
|
||||||
|
ENV_FILE
|
||||||
|
|
||||||
echo "Recreando servicios..."
|
echo "Recreando servicios..."
|
||||||
docker compose up -d --force-recreate
|
docker compose up -d --force-recreate
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Jwt": {
|
"Jwt": {
|
||||||
"Key": "badb1a38d221c9e23bcf70958840ca7f5a5dc54f2047dadf7ce45b578b5bc3e2",
|
|
||||||
"Issuer": "GestionIntegralApi",
|
"Issuer": "GestionIntegralApi",
|
||||||
"Audience": "GestionIntegralClient",
|
"Audience": "GestionIntegralClient",
|
||||||
"DurationInHours": 8
|
"DurationInHours": 8
|
||||||
|
|||||||
Reference in New Issue
Block a user