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 environment option for secure local website #3532

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

G-Ambatte
Copy link
Collaborator

@G-Ambatte G-Ambatte commented Jun 13, 2024

This PR adds support for the NODE_ENV environment variable to be set to local.secure. This option, when combined with a hostname configuration item, creates a webserver that serves pages secured with certificates configured for the hostname.

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.

@G-Ambatte G-Ambatte self-assigned this Jun 13, 2024
@calculuschild calculuschild temporarily deployed to homebrewery-pr-3532 August 11, 2024 03:50 Inactive
@dbolack-ab
Copy link
Collaborator

What is the purpose here?

@calculuschild
Copy link
Member

@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?

@G-Ambatte
Copy link
Collaborator Author

@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.

@dbolack-ab
Copy link
Collaborator

Closing per last exchange.

@dbolack-ab dbolack-ab closed this Nov 13, 2024
@G-Ambatte G-Ambatte reopened this Nov 20, 2024
let webServer = http.createServer(server.app);

const NODE_ENV = config.get('node_env');
if(NODE_ENV === 'local.secure') {
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Simplify using locally installed Homebrewery in HTTPS mode
3 participants