Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
FIX Add proxy configuration for embedded cURL requests
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jun 18, 2018
1 parent c025da1 commit 0b69b49
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"phpunit/phpunit": "^5.7"
},
"extra": {
"project-files": []
"project-files": [
"mysite/*"
]
},
"config": {
"process-timeout": 600
Expand Down
17 changes: 17 additions & 0 deletions mysite/_config/oembed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
Name: cwpoembedconfig
Except:
environment: dev
Only:
EnvVarSet: SS_OUTBOUND_PROXY
---
SilverStripe\Core\Injector\Injector:
# Configure the CWP proxy if defined
Embed\Http\DispatcherInterface:
class: Embed\Http\CurlDispatcher
constructor:
config:
# CURLOPT_PROXY = 10004
10004: '`SS_OUTBOUND_PROXY`'
# CURLOPT_PROXYPORT = 59
59: '`SS_OUTBOUND_PROXY_PORT`'

0 comments on commit 0b69b49

Please sign in to comment.