This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1043: Add PUBLIC_PROTOCOL to allow serving from a HTTP endpoint r=notriddle a=tommilligan Closes #1042 This PR introduces a new environment variable, `PUBLIC_PROTOCOL`. If unset, the value defaults to the current hardcoded value of `https`, with no change in behaviour: ```log 13:46:22.316 pid=<0.2038.0> [info] Running BorsNG.Endpoint with cowboy 1.1.2 at 0.0.0.0:39103 (http) 13:46:22.318 pid=<0.2005.0> [info] Access BorsNG.Endpoint at https://172.17.0.1:39103 ``` If `PUBLIC_PROTOCOL=http` is set, the endpoint is updated accordingly: ```log 13:48:59.885 pid=<0.2038.0> [info] Running BorsNG.Endpoint with cowboy 1.1.2 at 0.0.0.0:39103 (http) 13:48:59.887 pid=<0.2005.0> [info] Access BorsNG.Endpoint at http://172.17.0.1:39103 ``` This allows the app to run at a HTTP endpoint if HTTPS is not required. Co-authored-by: Tom Milligan <tom@reinfer.io>
- Loading branch information