-
Notifications
You must be signed in to change notification settings - Fork 327
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 environment option for secure local website #3532
base: master
Are you sure you want to change the base?
Conversation
What is the purpose here? |
@G-Ambatte Is it ok if we close this one for now and bring it back to its own issue where the need for this can be discussed? |
That's a good idea, I don't think the implementation is novel enough to warrant holding on to the PR. |
Closing per last exchange. |
let webServer = http.createServer(server.app); | ||
|
||
const NODE_ENV = config.get('node_env'); | ||
if(NODE_ENV === 'local.secure') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we change this line to a file existence check, rather than checking for a specific NODE_ENV type, then that should simplify this change.
This PR adds support for the NODE_ENV environment variable to be set to
local.secure
. This option, when combined with ahostname
configuration item, creates a webserver that serves pages secured with certificates configured for thehostname
.At this point in time, this is completely experimental and only of limited use in local installations. It has NOT been thoroughly tested, so some Homebrewery features may not work correctly with this environment setting.
This PR resolves #3900.