-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for proxying additional http/https ports
- Loading branch information
Showing
12 changed files
with
232 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.2.28-beta | ||
v0.2.29-beta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## Open additional shared http/https port(s) | ||
|
||
It's possible to configure additional shared HTTP/s port(s) and proxy the requests to the PHP containers. | ||
|
||
First, configure Traefik. Add the port to the Reward Configuration (default: `~/.reward.yml`). | ||
|
||
```yaml | ||
reward_traefik_bind_additional_http_ports: [ 8080 ] | ||
reward_traefik_bind_additional_https_ports: [ 8443, 9998 ] | ||
``` | ||
When it's done, restart Traefik. | ||
```shell | ||
reward svc down | ||
reward svc up | ||
``` | ||
|
||
Open [Traefik dashboard](https://traefik.reward.test) to check if the new port(s) exist in the entrypoints section. | ||
|
||
 | ||
|
||
When it's done configure this additional port on the PHP container as well. Add the following line to the | ||
project's `.env` file. (It's also possible to add multiple ports, separated by comma.) | ||
|
||
``` | ||
REWARD_HTTP_PROXY_PORTS=8080 | ||
REWARD_HTTPS_PROXY_PORTS=8443,9998 | ||
``` | ||
|
||
And restart the environment. | ||
|
||
```shell | ||
reward env down | ||
reward env up | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters