Merge pull request #2062 from roots/auto-detect-proxyurl-scheme
Auto-detect proxyUrl scheme
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
### HEAD
|
### HEAD
|
||||||
|
* Auto-detect `proxyUrl` scheme ([#2062](https://github.com/roots/sage/pull/2062))
|
||||||
* Bump to Laravel 5.6 ([#2061](https://github.com/roots/sage/pull/2061))
|
* Bump to Laravel 5.6 ([#2061](https://github.com/roots/sage/pull/2061))
|
||||||
* Update to Boostrap 4.1.0 ([#2056](https://github.com/roots/sage/pull/2056))
|
* Update to Boostrap 4.1.0 ([#2056](https://github.com/roots/sage/pull/2056))
|
||||||
* Change inline `@php` directive to full form ([#2042](https://github.com/roots/sage/pull/2042))
|
* Change inline `@php` directive to full form ([#2042](https://github.com/roots/sage/pull/2042))
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ const target = process.env.DEVURL || config.devUrl;
|
|||||||
*/
|
*/
|
||||||
if (url.parse(target).protocol === 'https:') {
|
if (url.parse(target).protocol === 'https:') {
|
||||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
|
||||||
|
|
||||||
|
config.proxyUrl = config.proxyUrl.replace('http:', 'https:');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
Reference in New Issue
Block a user