GitHub URL is pointing to http://127.0.0.1:8080


#1

Hello,

I am new to Concourse and trying to authenticate through GitHub.

When I click on login with GitHub it redirects me to

http://127.0.0.1:8080/auth/github?team_name=main&redirect=/

instead of

https://<my-domain>/auth/github?team_name=main&redirect=/

My Concourse is installed in a Kubernetes environment using concourse helm chart using below command

$ helm install --name concourse -f /tmp/values.yml stable/concourse

This is my values.yml file

---
image: concourse/concourse
imageTag: "3.12.0"
imagePullPolicy: IfNotPresent
concourse:
  atcPort: 8080
  tsaPort: 2222
  allowSelfSignedCertificates: false
  authDuration: 24h
  resourceCheckingInterval: 1m
  oldResourceGracePeriod: 5m
  resourceCacheCleanupInterval: 30s
  baggageclaimDriver: overlay2
  containerPlacementStrategy: random
  encryption:
    enabled: false
  basicAuth:
    enabled: false
  githubAuth:
    enabled: true
    organization: <my-org>
    team: admins
  gitlabAuth:
    enabled: false
  genericOauth:
    enabled: false
web:
  replicas: 1
  resources:
    requests:
      cpu: "100m"
      memory: "128Mi"
  tolerations: []
  service:
    type: ClusterIP
  ingress:
    enabled: false
  metrics:
    prometheus:
      enabled: false
      port: 9391
worker:
  replicas: 2
  minAvailable: 1
  resources:
    requests:
      cpu: "100m"
      memory: "512Mi"
  nodeSelector: {}
  tolerations: []
  terminationGracePeriodSeconds: 60
  fatalErrors: |-
    guardian.api.garden-server.create.failed
    baggageclaim.api.volume-server.create-volume-async.failed-to-create
  updateStrategy: RollingUpdate
  podManagementPolicy: Parallel
persistence:
  enabled: true
  worker:
    accessMode: ReadWriteOnce
    size: 20Gi
postgresql:
  enabled: true
  postgresUser: concourse
  postgresPassword: concourse
  postgresDatabase: concourse
  persistence:
    enabled: true
credentialManager:
  kubernetes:
    enabled: true
    teams:
      - main
    keepNamespaces: true
  ssm:
    enabled: false
  vault:
    enabled: false
    pathPrefix: /concourse
rbac:
  create: true
  apiVersion: v1beta1
  webServiceAccountName: default
  workerServiceAccountName: default
secrets:
  create: true
  hostKey: |-
    <private-key>
  hostKeyPub: |-
    <public-key>
  sessionSigningKey: |-
    <private-key>
  workerKey: |-
    <private-key>
  workerKeyPub: |-
    <public-key>
  basicAuthUsername:
  basicAuthPassword:
  githubAuthClientId: <my-github-client-id>
  githubAuthClientSecret:  <my-github-client-secret>

Not sure, what I missing here.


#2

Hey, run concourse web with parameter

--external-url https://<concourse-external-host>:<concourse-port>

#3

Thank you, worked like a charm :slight_smile:

I think this should be in the docs too.


#4

@vikas027 yes, that should be in the docs.


#5

it’s already in the docs:

https://concourse-ci.org/install.html#quickstart

The addition of the --external-url flag is not technically necessary, so if you’re just testing things it’s safe to omit it. Concourse uses it as a base when generating URLs to itself, so you won’t want those to be the default http://127.0.0.1:8080 URL when you’re developing on a different machine than the server.