commit
5e37adedfb
@ -0,0 +1,5 @@
|
||||
instance.example.com { # Your instance's domain
|
||||
proxy / localhost:4000 {
|
||||
websocket
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
|
||||
defmodule Pleroma.HTTP do
|
||||
use HTTPoison.Base
|
||||
|
||||
def process_request_options(options) do
|
||||
config = Application.get_env(:pleroma, :http, [])
|
||||
proxy = Keyword.get(config, :proxy_url, nil)
|
||||
case proxy do
|
||||
nil -> options
|
||||
_ -> options ++ [proxy: proxy]
|
||||
end
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in new issue