Manual https - how to forward from http?

Hello - using manual https (not letsencrypt) - I’ve got it so that https:// works fine, however an annoying thing that I’m finally tackling is that http:// just hangs. It appears to attempt to forward to https::8443 instead of :443.

I read through all the code and docs I could for proxy and http-configurable-proxy and have tried using helm to modify the proxy command to include

  --redirect-port <redirect-port>    Redirect HTTP requests on this port to the server on HTTPS
  --redirect-to <port>               Redirect HTTP requests from --redirect-port to this port

specifying 80 and 443 respectively seems to have no effect. Any ideas?


    enabled: True
    hosts: <>
    type: manual
      key: |
        -----BEGIN PRIVATE KEY-----
        -----END PRIVATE KEY-----
      cert: |
        -----BEGIN CERTIFICATE-----
        <mycert chain>
        -----END CERTIFICATE-----

  secretToken: "<blar blar>"
  command: "configurable-http-proxy --redirect-port 80 --redirect-to 443" 
  defaultUrl: "/lab"
    name: jupyter/base-notebook
    tag: latest
    type: "static"
      pvcName: "efs-persist"
      subPath: 'home/{username}'
    CHOWN_HOME: 'yes'
  uid: 0
  fsGid: 0
  cmd: ""

seeing this in the debug output of helm install:

            - configurable-http-proxy
            - --ip=
            - --api-ip=
            - --api-port=8001
            - --default-target=http://$(HUB_SERVICE_HOST):$(HUB_SERVICE_PORT)
            - --error-target=http://$(HUB_SERVICE_HOST):$(HUB_SERVICE_PORT)/hub/error
            - --port=8443
            - --redirect-port=8000
            - --ssl-key=/etc/chp/tls/tls.key
            - --ssl-cert=/etc/chp/tls/tls.crt

Ignoring my values that I set?

Thanks for opening this here!

I suspect this is the same as which was fixed recently. What do you think?

1 Like

you’re right, very elite googling my friend.

Pardon my ignorance, but can you please comment on what you added to the yaml file to resolve this?

Thank you.