-
As documentation suggests, how to set up After following tutorial, no problem to run queries like I read this post, and I'm looking for examples and user's feedbacks.
/etc/postgrest/config/api.conf
But something is wrong or missing, any ideas ? PS: also asked here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello, Can you give more details on the encountered error? What browser, what behavior, error codes, logs, ...? Also, only one app can listen to a given port on a given IP. As a side note, in your Nginx api.conf file, I would use the upstream you set up in the proxy_pass instruction, and maybe add the request uri (not sure if that one is necessary) : Edit: Not sure if it is another issue, but your server_name is set to answer on mywebsite.com, but your request calls for **www.**mywebsite.com. Regards, |
Beta Was this translation helpful? Give feedback.
Hello,
Can you give more details on the encountered error? What browser, what behavior, error codes, logs, ...?
Also, only one app can listen to a given port on a given IP.
You are giving conf details for Apache and Nginx, but unless you have a very particular network infrastructure, only one of them can receive your request on https://www.mywebsite.com/api/todos. Are you sure it is Nginx ?
As a side note, in your Nginx api.conf file, I would use the upstream you set up in the proxy_pass instruction, and maybe add the request uri (not sure if that one is necessary) :
proxy_pass http://postgrest$request_uri;
Edit: Not sure if it is another issue, but your server_name is set to answer on my…