Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“Service Unavailable” when trying to run via Docker #6

Open
stevaner opened this issue Jul 3, 2024 · 1 comment
Open

“Service Unavailable” when trying to run via Docker #6

stevaner opened this issue Jul 3, 2024 · 1 comment

Comments

@stevaner
Copy link

stevaner commented Jul 3, 2024

I am trying to run the app via Docker with the following config (the diff between combined.yaml and config.example.yaml):

app:
  server:
     baseUri: "https://localhost"
  opencred:
    caStore:
      - pem: |
          -----BEGIN CERTIFICATE-----
          MYCERT
          -----END CERTIFICATE-----
    signingKeys:
      - type: ES256
        privateKeyPem: |
          -----BEGIN EC PRIVATE KEY-----
          MYPRIVATEKEY
          -----END EC PRIVATE KEY-----
        publicKeyPem: |
          -----BEGIN PUBLIC KEY-----
          MYPUBKEY
          -----END PUBLIC KEY-----
        purpose:
          - id_token
          - authorization_request
  …
  enableAudit: false

I’m getting Service Unavailable when I visit https://localhost:22443.
Any idea what the problem is?

@mattcollier
Copy link
Collaborator

This flag controls whether the app will run on HTTP only (not HTTPS).

If you run with httpOnly = false, the server will operate on the HTTPS ports using a self-signed certificate.

The httpOnly = true setting is appropriate when running behind a tunnel or load balancer that provides TLS as explained in the readme: https://github.com/stateofca/opencred/tree/main?tab=readme-ov-file#optional-remote-tunnel-setup

https://github.com/stateofca/opencred/blob/main/configs/server.js#L13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants