summaryrefslogtreecommitdiff
path: root/docs/config/howto_proxy.md
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-03-29 10:24:52 +0000
committerlambda <lain@soykaf.club>2019-03-29 10:24:52 +0000
commit749d53e2b2ffb108964c569f04e5989c63643338 (patch)
tree5c765f1be631734c99e690fbefc1906eb487f208 /docs/config/howto_proxy.md
parent52bec238c3c80a246eb269de9afb1f9b3ea58f4f (diff)
parent634e09e1a8d0c26ad9a89875e3f713a0bf07ea3e (diff)
downloadpleroma-749d53e2b2ffb108964c569f04e5989c63643338.tar.gz
pleroma-749d53e2b2ffb108964c569f04e5989c63643338.zip
Merge branch 'sayonara-gitlab-wiki' into 'develop'
Move out of Gitlab Wiki See merge request pleroma/pleroma!990
Diffstat (limited to 'docs/config/howto_proxy.md')
-rw-r--r--docs/config/howto_proxy.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/config/howto_proxy.md b/docs/config/howto_proxy.md
new file mode 100644
index 000000000..10a635266
--- /dev/null
+++ b/docs/config/howto_proxy.md
@@ -0,0 +1,12 @@
+# How to configure upstream proxy for federation
+If you want to proxify all http requests (e.g. for TOR) that pleroma makes to an upstream proxy server, edit you config file (`dev.secret.exs` or `prod.secret.exs`) and add the following:
+
+```
+config :pleroma, :http,
+ proxy_url: "127.0.0.1:8123"
+```
+
+The other way to do it, for example, with Tor you would most likely add something like this:
+```
+config :pleroma, :http, proxy_url: {:socks5, :localhost, 9050}
+```