Coder.comC
Coder.com3y ago
17 replies
meghana

Coder behind nginx ingress on a custom path

Is there a way to deploy coder behind nginx ingress on a custom path? We have many apps running behind the '/' path of ingress. So we were looking if coder can run behind a custom path. Below is the setting in values.yaml
- name: CODER_ACCESS_URL
      value: "https://mydomain.company.com/coder"

And the nginx ingress is defined asbelow:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
  name: coder-ingress
  namespace: coder
spec:
  tls:
    - hosts:
        - mydomain.company.com
      secretName: my-cert
  rules:
    - host: mydomain.company.com
      http:
        paths:
          - backend:
              service:
                name: coder
                port:
                  number: 80
            path: /(coder)(.*)
            pathType: Prefix

This setup doesn't seem to be working. Is there anything else we are missing?
Was this page helpful?