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

SECURE_CHANNELS can't be boolean #107

Closed
kapoko opened this issue Jan 24, 2021 · 2 comments · Fixed by #108
Closed

SECURE_CHANNELS can't be boolean #107

kapoko opened this issue Jan 24, 2021 · 2 comments · Fixed by #108
Labels
bug Something isn't working

Comments

@kapoko
Copy link

kapoko commented Jan 24, 2021

Bug report

SECURE_CHANNELS should be a string, number or null.

Describe the bug

Setting SECURE_CHANNELS to true or false in docker-compose file throws error. The docs say this value should be boolean but it is not allowed.

To Reproduce

Set supabase/realtime docker image environment value SECURE_CHANNELS to true (or false).

Expected behavior

No error, or the docs to specify the value should be 'true' or 'false' (with quotes).

Screenshots

image

System information

  • OS: macOS 10.14.6 (Mojave)
  • Docker version 19.03.14
  • Version of supabase/realtime: v0.10.4
  • Version of Node.js: [e.g. 10.10.0]
@kapoko kapoko added the bug Something isn't working label Jan 24, 2021
@soedirgo
Copy link
Member

Thanks for the report @kapoko!

This looks like a problem with YAML in general (see docker/compose#1788), all environment variables are strings, but I agree that the types in the docs can make it confusing. But since it was mentioned in the context of command line arguments, it's technically correct.

@w3b6x9 any thoughts on this? I think a minor improvement would be to mention examples alongside the options without specifying types.

@w3b6x9
Copy link
Member

w3b6x9 commented Jan 24, 2021

Thanks for bringing this to our attention, @kapoko!

@soedirgo Thanks for looking into this! I agree, let's have another example to better demonstrate how to pass in these env vars. I'll put up a PR, link this issue, and we can discuss futher!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants