Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Adds a generic DOMAIN configuration environment #1469

Merged
merged 1 commit into from
Sep 1, 2016

Conversation

lirantal
Copy link
Member

Generic DOMAI configuration environment variable, useful for setting links to an app
in reset email templates, and other cases.

Fixes #871 and #847

Generic DOMAI configuration environment variable, useful for setting links to an app
in reset email templates, and other cases.

Fixes meanjs#871 and meanjs#847
@lirantal lirantal self-assigned this Aug 31, 2016
@lirantal lirantal added this to the 0.5.0 milestone Aug 31, 2016
@@ -9,6 +9,9 @@ module.exports = {
},
port: process.env.PORT || 3000,
host: process.env.HOST || '0.0.0.0',
// DOMAIN config should be set to the fully qualified application accessible
// URL. For example: https://www.myapp.com (including port if required).
domain: process.env.DOMAIN,
Copy link
Member

Choose a reason for hiding this comment

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

If not set, should this default to localhost? Or at least default to localhost in the development config?

Copy link
Member Author

Choose a reason for hiding this comment

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

We kind of take care of that in https://github.com/meanjs/mean/pull/1469/files/77d4a990f52b83d684a6eb73c7e019576163467e#diff-c3841fb7af244bab7b73ea4c3d72055cR64

It also makes it much complicated to default it to something because you don't know if the server is running in http or https, and this causes many more logic tests to run. It's a simple domain/url setting, I don't think we need to make it anymore complex than that.

Copy link
Member

Choose a reason for hiding this comment

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

SGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants