diff --git a/app/app-config.production.yaml b/app/app-config.production.yaml index 0630d7c75..9ee5542f5 100644 --- a/app/app-config.production.yaml +++ b/app/app-config.production.yaml @@ -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 @@ -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 diff --git a/app/app-config.yaml b/app/app-config.yaml index 7b6b5e696..f478f02e5 100644 --- a/app/app-config.yaml +++ b/app/app-config.yaml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 5b6053a68..1972b57a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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