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

Added env. variable to support specific HTTPS redirect ports #105

Closed
wants to merge 6 commits into from

Conversation

JMalland
Copy link
Contributor

@JMalland JMalland commented Apr 3, 2024

Will prioritize HTTPS_REDIRECT_PORT, but default to 80 if only ENABLE_HTTP_REDIRECT is enabled.

JMalland added 3 commits April 3, 2024 11:45
Will prioritize HTTPS_REDIRECT_PORT, but default to 80 if only ENABLE_HTTP_REDIRECT is enabled.
Never written in Go before. Who knew you couldn't have "else if" on a new line?
@JMalland
Copy link
Contributor Author

JMalland commented Apr 3, 2024

I feel like ENABLE_HTTP_REDIRECT should either be port 443, since it's actually HTTPS, or it should be named ENABLE_HTTPS_REDIRECT for clarity. Up to you though.

@JMalland JMalland closed this Apr 3, 2024
@JMalland JMalland reopened this Apr 3, 2024
JMalland added 3 commits April 3, 2024 17:34
Add `GLOBAL_ACCESS=true` in .env
run `go build`

To use with PATH, add the directory/file location to PATH

Executing (Windows):
run `broadcast-box`
run `/path-to-file/broadcast-box`

Executing (Linux -- Ubuntu 22.04):
run `broadcast-box`
run `./path-to-file/broadcast-box`
It would trigger an error outside of the main directory anyways... so GLOBAL_ACCESS is never relevant
@JMalland JMalland closed this Apr 5, 2024
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.

1 participant