fixing typos
This commit is contained in:
parent
e7389c8fdf
commit
95bc4713b3
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
@ -1,14 +1,14 @@
|
||||||
# Akkoma module for IPFS as uploader
|
# Akkoma module for IPFS as uploader
|
||||||
|
|
||||||
## Important
|
## Important, please read
|
||||||
This module replace the `upload.ex` file to implement the IPFS uploader,
|
**This module replaces the default `upload.ex` file to implement the IPFS uploader,
|
||||||
this because Elixir doesn't implement Monkey Patching and without the
|
this because Elixir doesn't implement Monkey Patching and without the
|
||||||
modified `upload.ex` Akkom won't return the right base url back.
|
modified `upload.ex` Akkoma won't return the right base url back.**
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
* Enter in the module folder of akkoma (defined in the `config.exs`)
|
* Enter in the module folder of akkoma (defined in the `config.exs`, by default Akkoma uses this: `/var/lib/akkoma/modules`)
|
||||||
* Clone this repo inside (only the .ex files will be loaded)
|
* Clone this repo inside (only the .ex files will be loaded by Akkoma)
|
||||||
|
|
||||||
### Cheatsheet
|
### Cheatsheet
|
||||||
|
|
||||||
|
@ -17,14 +17,14 @@ modified `upload.ex` Akkom won't return the right base url back.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
*config*
|
*config.exs*
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
config :pleroma, :modules, runtime_dir: "instance/modules"
|
config :pleroma, :modules, runtime_dir: "instance/modules"
|
||||||
|
|
||||||
config :pleroma, Pleroma.Uploaders.IPFS,
|
config :pleroma, Pleroma.Uploaders.IPFS,
|
||||||
post_gateway_url: "http://localhost:5001",
|
post_gateway_url: "http://localhost:5001",
|
||||||
get_gateway_url: "http://{CID}.ipfs.mydomain.com"
|
get_gateway_url: "https://{CID}.ipfs.mydomain.com"
|
||||||
|
|
||||||
config :pleroma, Pleroma.Upload,
|
config :pleroma, Pleroma.Upload,
|
||||||
uploader: Pleroma.Uploaders.IPFS
|
uploader: Pleroma.Uploaders.IPFS
|
||||||
|
|
Loading…
Reference in a new issue