Finaliza docker compose

This commit is contained in:
LeoMortari
2025-09-14 17:43:28 -03:00
parent 63a4a002ec
commit 59106b747a
6 changed files with 23 additions and 34 deletions

View File

@@ -33,10 +33,9 @@ export interface JwtPayload {
@Injectable()
export class KeycloakJwtStrategy extends PassportStrategy(Strategy, 'jwt') {
constructor() {
const baseUrl =
process.env.NODE_ENV === 'production'
? 'http://keycloak:8080'
: 'https://auth.clipperia.com.br';
const baseUrl = process.env.KEYCLOAK_URL
? process.env.KEYCLOAK_URL
: 'https://auth.clipperia.com.br';
super({
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),