Replies: 2 comments 2 replies
-
@hopeseekr You're stumping me, but I've never set up a reverse proxy. But I have an instance of the app running with a custom domain, with an SSL key, on Fly and on Render, and I didn't run into any problems with that. Are you running this docker instance locally or on a public server? I just tried copying and pasting all this into GPT and it told me:
|
Beta Was this translation helpful? Give feedback.
-
Also, see this initializer. You can set This assumes the Rails app knows the requests are via HTTPS of course. |
Beta Was this translation helpful? Give feedback.
-
So I have Docker working… I had to make some modifications to the
config/environments/development.rb
:This is to support all of Docker’s IP ranges 172.16.0.0-172.31.255.255, since the server runs multiple docker networks.
And
+config.action_cable.allowed_request_origins = [ "https://gpt.zpf.io" ]
so that it will accept entries from the main domain.
The problem is that signups don’t work: https://gpt.zpf.io/register
Each request returns: 422 Unprocessable Content with this in the docker log:
Very simple reverse proxy:
Beta Was this translation helpful? Give feedback.
All reactions