When I try to connect to backstage through gitlab running backstage locally, it works. But when I try to deploy it on kubernetes, it keeps showing the error "The redirect URI included is not valid.". Any ideias?
app:
title: Scaffolded Backstage App
baseUrl: http://${HOST}
organization:
name: test
backend:
# Used for enabling authentication, secret is shared by all backend plugins
# See https://backstage.io/docs/auth/service-to-service-auth for
# information on the format
# auth:
# keys:
# - secret: ${BACKEND_SECRET}
baseUrl: http://${HOST}
# listen:
# port: 7007
# Uncomment the following host directive to bind to specific interfaces
# host: 127.0.0.1
csp:
connect-src: ["'self'", 'http:', 'https:']
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference
# Default Helmet Content-Security-Policy values can be removed by setting the key to false
cors:
origin: http://${HOST}
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true
integrations:
gitlab:
- host: gitlab.com
token: ${GITLAB_TOKEN}
auth:
environment: development
providers:
gitlab:
development:
clientId: ${AUTH_GITLAB_CLIENT_ID}
clientSecret: ${AUTH_GITLAB_CLIENT_SECRET}
experimentalExtraAllowedOrigins:
- https://${BACKSTAGE_HOST}