mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Merge pull request #494
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%",
|
||||
"#TRUSTED_PROXIES": "127.0.0.1,127.0.0.2",
|
||||
"#TRUSTED_HOSTS": "localhost,example.com"
|
||||
"#TRUSTED_HOSTS": "'^localhost|example\\.com$'"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
|
||||
@@ -17,7 +17,7 @@ if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ??
|
||||
}
|
||||
|
||||
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
|
||||
Request::setTrustedHosts(explode(',', $trustedHosts));
|
||||
Request::setTrustedHosts([$trustedHosts]);
|
||||
}
|
||||
|
||||
$kernel = new Kernel($_SERVER['APP_ENV'], $_SERVER['APP_DEBUG']);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%",
|
||||
"#TRUSTED_PROXIES": "127.0.0.1,127.0.0.2",
|
||||
"#TRUSTED_HOSTS": "localhost,example.com"
|
||||
"#TRUSTED_HOSTS": "'^localhost|example\\.com$'"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
|
||||
@@ -17,7 +17,7 @@ if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ??
|
||||
}
|
||||
|
||||
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
|
||||
Request::setTrustedHosts(explode(',', $trustedHosts));
|
||||
Request::setTrustedHosts([$trustedHosts]);
|
||||
}
|
||||
|
||||
$kernel = new Kernel($_SERVER['APP_ENV'], $_SERVER['APP_DEBUG']);
|
||||
|
||||
Reference in New Issue
Block a user