This repository has been archived by the owner on Jan 17, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(config): Add trusted_proxies and trusted_hosts
Explicit env variables were removed in favor of bundle configuration which allows setting custom env variables. Additionally, support for overriding these values at runtime (from cli) was added. See: ```bash $ bin/console s:s:r --help ``` BREAKING CHANGE: - Env APP_TRUSTED_HOSTS is no longer supported - Env APP_TRUSTED_PROXIES is no longer supported - Configuration 'swoole.http_server.services.debug' was renamed to 'swoole.http_server.services.debug_handler' - Configuration 'swoole.http_server.services.trust_all_proxies' was renamed to 'swoole.http_server.services.trust_all_proxies_handler' Closes #5
- Loading branch information
Showing
11 changed files
with
76 additions
and
36 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
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
parameters: | ||
env(HOST): localhost | ||
env(PORT): 9501 | ||
|
||
swoole: | ||
http_server: | ||
port: '%env(int:PORT)%' | ||
host: '%env(HOST)%' | ||
static: 'off' | ||
port: 9501 | ||
host: localhost | ||
static: 'auto' | ||
trusted_proxies: | ||
- '*' | ||
- 127.0.0.1/8 | ||
- 192.168.2./16 | ||
trusted_hosts: localhost,127.0.0.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
User-agent: * | ||
Disallow: / |