Skip to content

Commit

Permalink
🐐 Fix Backstage
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoluisi committed Dec 27, 2023
1 parent fb3a66a commit 82d2d6b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
32 changes: 20 additions & 12 deletions app/app-config.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ backend:
#credentials: true
# config options: https://node-postgres.com/api/client

# database:
# client: pg
# connection:
# database: ${POSTGRES_DATABASE}
# host: ${POSTGRES_HOST}
# port: ${POSTGRES_PORT}
# user: ${POSTGRES_USER}
# password: ${POSTGRES_PASSWORD}
# ensureExists: true
# pluginDivisionMode: schema


cache:
store: memory
# workingDirectory: /tmp # Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir
Expand Down Expand Up @@ -89,6 +77,26 @@ techdocs:
accessKeyId: ${AWS_ACCESS_KEY_ID}
secretAccessKey: ${AWS_SECRET_ACCESS_KEY}

proxy:
"/argocd/api":
target: https://argocd.devxp-tech.io/api/v1/
changeOrigin: true
# only if your argocd api has self-signed cert
secure: true
headers:
Cookie:
$env: ARGOCD_AUTH_TOKEN

"/grafana/api":
# May be an internal DNS
target: http://grafana.monitoring.svc/
headers:
Authorization: Bearer ${GRAFANA_TOKEN}

"/prometheus/api":
# url to the api and path of your hosted prometheus instance
target: http://prometheus-prometheus.monitoring.svc:9090/api/v1/

auth:
environment: production
### Providing an auth.session.secret will enable session support in the auth-backend
Expand Down
2 changes: 1 addition & 1 deletion app/app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ proxy:

"/prometheus/api":
# url to the api and path of your hosted prometheus instance
target: http://prometheus-server.monitoring.svc/api/v1/
target: https://prometheus.devxp-tech.io/api/v1/

# '/snyk':
# target: https://snyk.io/api/v1
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ services:
- 3000:3000
- 7007:7007
environment:
- ARGOCD_AUTH_TOKEN=$ARGOCD_AUTH_TOKEN
- AUTH_GITHUB_CLIENT_ID=$AUTH_GITHUB_CLIENT_ID
- AUTH_GITHUB_CLIENT_SECRET=$AUTH_GITHUB_CLIENT_SECRET
- ENV=development
- GITHUB_ACCESS_TOKEN=$GITHUB_ACCESS_TOKEN
- GIT_DISCOVERY_ACROSS_FILESYSTEM=1
- GRAFANA_TOKEN=$GRAFANA_TOKEN
- K8S_URL=$K8S_URL
- K8S_TOKEN=$K8S_TOKEN
- POSTGRES_HOST=postgres
Expand Down

0 comments on commit 82d2d6b

Please sign in to comment.