Skip to content

Commit

Permalink
curl_json: Support reading from a unix socket
Browse files Browse the repository at this point in the history
  • Loading branch information
radford committed Nov 12, 2014
1 parent 68b7b13 commit 44766fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/curl_json.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
LoadPlugin "curl_json"

<Plugin "curl_json">
<%- if @url.start_with? '/' -%>
<Sock "<%= @url %>">
<%- else -%>
<URL "<%= @url %>">
<%- end -%>
Instance "<%= @instance %>"

<% if @user %>
Expand All @@ -16,5 +20,9 @@ LoadPlugin "curl_json"
</Key>
<% end -%>

<%- if @url.start_with? '/' -%>
</Sock>
<%- else -%>
</URL>
<%- end -%>
</Plugin>

0 comments on commit 44766fb

Please sign in to comment.