Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Document that postgrest is sometimes unable to bind to localhost #83

Closed
begriffs opened this issue Jul 1, 2017 · 1 comment
Closed

Comments

@begriffs
Copy link
Member

begriffs commented Jul 1, 2017

It appears in PostgREST/postgrest#899 that centos7 may not include a localhost alias in its /etc/hosts file, so postgrest is unable to bind there. The default binding of *4 does work, but investigate if there's a suitable alternative for people who want to host locally but not expose the server to the outside world. Perhaps 127.0.0.1 works. Document this in the configuration section.

@begriffs
Copy link
Member Author

begriffs commented Jul 1, 2017

Also include special connection options listed in HostDataPreference

  • * means HostAny - "any IPv4 or IPv6 hostname"
  • *4 means HostIPv4 - "any IPv4 or IPv6 hostname, IPv4 preferred"
  • !4 means HostIPv4Only - "any IPv4 hostname"
  • *6 means HostIPv6@ - "any IPv4 or IPv6 hostname, IPv6 preferred"
  • !6 means HostIPv6Only - "any IPv6 hostname"

begriffs added a commit that referenced this issue Sep 10, 2017
Document special host binding addresses

Fixes #83
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant