X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=docs%2Fdevelopment%2Fsetting_up_akkoma_dev.md;h=7184be485bd586939706c3e3c86827cade040331;hb=5ad256f170c29a864b0f720acc8302b347fd9b25;hp=33ec24f6c222156ec40b4ee2ec336bdacd631cb2;hpb=82fa766ed7a19167af9e25522a2717910c13f6c7;p=akkoma diff --git a/docs/development/setting_up_akkoma_dev.md b/docs/development/setting_up_akkoma_dev.md index 33ec24f6c..7184be485 100644 --- a/docs/development/setting_up_akkoma_dev.md +++ b/docs/development/setting_up_akkoma_dev.md @@ -36,6 +36,33 @@ config :logger, :console, level: :info ``` +## Testing with HTTPS + +If you end up developing alongside other software like misskey, +you will not be able to federate without an SSL certificate. You should +be able to use the snakeoil certificate that comes standard with most +distributions or generate one from scratch, then force elixir to accept it. + +HTTP clients are none too keen to accept self-signed certs, but we can do +this: + +```elixir +config :pleroma, :http, + adapter: [ + pools: %{ + default: [ + conn_opts: [ + transport_opts: [ + verify: :verify_none + ] + ] + ] + } + ] +``` + +Now your SSL requests will work. Hooray. + ## Testing 1. Create a `test.secret.exs` file with the content as shown below