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

Add mailhog and ngrok descriptions #281

Merged
merged 9 commits into from
Jun 23, 2021
Merged

Add mailhog and ngrok descriptions #281

merged 9 commits into from
Jun 23, 2021

Conversation

krzysztofwolski
Copy link
Member

@krzysztofwolski krzysztofwolski commented Jun 21, 2021

  • exposing local env with ngrok
  • using mailhog

Close #81

@krzysztofwolski
Copy link
Member Author

Also - I'll add exposing localhost info to the apps section in the separate PR

@krzysztofwolski krzysztofwolski changed the title Add tools section Add mailhog and ngrok descriptions Jun 21, 2021
There are situations when you would like to expose your local environment to external clients, for example:

- show your project to the manager.
- integrate with the new payment gateway, which requires a return URL.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work. There is a settings.ALLOWED_CLIENT_HOSTS which defines where user can be redirected. If you don't overwrite this variable, the allowed redirect URL will be 127.0.0.1 and localhost. Any different than this will raise an error. The same case is for the situation when you're hosting storefront somewhere, and you use ngrok to connect it to your backend (all mutation like, reset password, send activation URL will raise an exception, afair).

krzysztofwolski and others added 3 commits June 22, 2021 18:21
Co-authored-by: Karol <57907951+karolkielecki@users.noreply.github.com>
Co-authored-by: Karol <57907951+karolkielecki@users.noreply.github.com>
@krzysztofwolski krzysztofwolski merged commit c58d414 into master Jun 23, 2021
@krzysztofwolski krzysztofwolski deleted the tools branch June 23, 2021 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write documentation on exposing the locally running instance
4 participants