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

Connect to new domain not same IP #72

Closed
jialutu opened this issue Dec 20, 2017 · 2 comments
Closed

Connect to new domain not same IP #72

jialutu opened this issue Dec 20, 2017 · 2 comments
Labels

Comments

@jialutu
Copy link

jialutu commented Dec 20, 2017

Hi, currently when you connect an app to a new domain, the new domain need to be set up to have the same IP as the captain domain. Would it be possible to add a feature to forego this check in case you want to use a reverse proxy such as Cloudflare please? Thanks

@githubsaturn
Copy link
Collaborator

No, the new domain does not need to have the same IP as Captain sever. But the request MUST finally come to Captain server (even with multiple reverse proxies in the way) - (is this the problem?) I don't understand why this is an issue. Can you please provide more details?

With reverse proxy. when you add a new domain the following steps happen:
1- Captain sends a request to www.myawesomeapp.com
2- Cloudfrare receives the request and forwards it Captain server
3- Captain receives the request and aknowledges the the domain is resolved to Captain (with or without some reverse proxy in the way)

In order to have it working, you will have to have Cloudfare setup ready before you attach a new domain.

I have not personally tested with the above setup, but surely, this is the "intented behaviour". If this is not how it's working, I'll have to look into it and improve the behavior. Can you please let me know if you tested with the setup described above and have the Cloudfare forwarding requests to Captain server in place and still have problem.

To test whether the Cloudfare forwarding works fine, when you have your setup ready, just visit www.yourawesomeapp.com and you should see the default Captain page which says "nothing here :/" Do you see this page?

@jialutu
Copy link
Author

jialutu commented Dec 28, 2017

Maybe I was doing something wrong when I initially tried the setup. I had to set up the domain in godaddy and verified that it was working before changing it to use cloudflare. Since this is no longer an issue and I am unable to replicate it, I will close this issue. Thanks

@jialutu jialutu closed this as completed Dec 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants