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 new environment variable for public version of SKYGEAR_ENDPOINT #232

Open
2 tasks
carmenlau opened this issue Aug 7, 2018 · 0 comments
Open
2 tasks
Labels

Comments

@carmenlau
Copy link
Contributor

carmenlau commented Aug 7, 2018

Currently we used SKYGEAR_ENDPOINT as default of pubsub and skygear container endpoint in py-skygear, so I assume that SKYGEAR_ENDPOINT should be the skygear server endpoint in the private network. But for some cases like generating reset password link. We will want to have a public version of skygear server endpoint. So I suggest that we should have both public and private version of skygear endpoint config in py-skygear so we can use them in different case. If my assumption of "SKYGEAR_ENDPOINT should be private" is correct, maybe we can add SKYGEAR_PUBLIC_ENDPOINT?

Note: After we updated, we should also update plugins default. For example, skygear-sso callback url default, forgot_password reset password, verify url default... etc.

  • Skygear Server Date/Version: 1.6.1
  • Application Platform:
  • Is this a regression?
  • Attached logs, screenshots
@limouren limouren added vote/2 and removed vote/1 labels Oct 15, 2018
Steven-Chan added a commit to SkygearIO/skygear-server that referenced this issue Nov 28, 2018
- Default value and validation are for env and json config source only. Since we used msgp for transporting through request header, which is not the config source. The input and output will be the same and the default value and validation is not applied
- Allow static default by updating `NewTenantConfiguration`
- Allow a degree of flexible to update dynamic default in `AfterUnmarshal`
- SkygearIO/py-skygear#232 is not addressed here, since gear communicate is through public gateway now. And we may want to revisit in when we do cloud function and see if it is still valid.

Refs #791.
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