mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
commit
a5d6d0ab32
5 changed files with 26 additions and 2 deletions
|
@ -32,7 +32,6 @@ For user friendly details about Pleroma: [see here](https://blog.soykaf.com/post
|
||||||
1. **Pleroma** require a dedicated **root domain**, eg. pleroma.domain.tld
|
1. **Pleroma** require a dedicated **root domain**, eg. pleroma.domain.tld
|
||||||
1. **Pleroma** require a valid **certificate** installed on the domain. Yunohost can **install Letsencrypt certificate** on the domain from **admin web-interface** or through **command-line**.
|
1. **Pleroma** require a valid **certificate** installed on the domain. Yunohost can **install Letsencrypt certificate** on the domain from **admin web-interface** or through **command-line**.
|
||||||
1. This package is **multi-instance** that means you can run **multiple Pleroma instances** on a **single server**.
|
1. This package is **multi-instance** that means you can run **multiple Pleroma instances** on a **single server**.
|
||||||
1. There is **No LDAP** support for Pleroma yet.
|
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
@ -78,7 +77,7 @@ You can make users **moderators**. They will then be able to **delete any post**
|
||||||
|
|
||||||
#### Multi-users support
|
#### Multi-users support
|
||||||
|
|
||||||
LDAP and HTTP auth are not supported.
|
LDAP supported but HTTP auth not.
|
||||||
|
|
||||||
The app can be used by multiple users.
|
The app can be used by multiple users.
|
||||||
|
|
||||||
|
|
11
conf/ldap.exs
Normal file
11
conf/ldap.exs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
config :pleroma, Pleroma.Web.Auth.Authenticator, Pleroma.Web.Auth.LDAPAuthenticator
|
||||||
|
config :pleroma, :ldap,
|
||||||
|
enabled: true,
|
||||||
|
host: "localhost",
|
||||||
|
port: 389,
|
||||||
|
ssl: false,
|
||||||
|
# sslopts: [],
|
||||||
|
tls: false,
|
||||||
|
# tlsopts: [],
|
||||||
|
base: "ou=users,dc=yunohost,dc=org",
|
||||||
|
uid: "uid"
|
|
@ -10,6 +10,7 @@
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
proxy_pass http://localhost:__PORT__;
|
proxy_pass http://localhost:__PORT__;
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,13 @@ pushd $final_path/$app
|
||||||
--listen-ip 127.0.0.1 \
|
--listen-ip 127.0.0.1 \
|
||||||
--listen-port $port \
|
--listen-port $port \
|
||||||
--db-configurable Y"
|
--db-configurable Y"
|
||||||
|
popd
|
||||||
|
|
||||||
|
cat "../conf/ldap.exs" >> "$config"
|
||||||
|
|
||||||
|
ynh_replace_string --match_string="config :pleroma, configurable_from_database: false" --replace_string="config :pleroma, configurable_from_database: true" --target_file="$config"
|
||||||
|
|
||||||
|
pushd $final_path/$app
|
||||||
|
|
||||||
su "$app" -s $SHELL -lc "$final_path/$app/bin/pleroma_ctl migrate"
|
su "$app" -s $SHELL -lc "$final_path/$app/bin/pleroma_ctl migrate"
|
||||||
|
|
||||||
|
|
|
@ -172,6 +172,12 @@ if ynh_version_gt "1.1.1~ynh1" "${previous_version}" ; then
|
||||||
ynh_secure_remove --file="$final_path/$app"
|
ynh_secure_remove --file="$final_path/$app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ynh_version_gt "2.0.5~ynh1" "${previous_version}" ; then
|
||||||
|
config="/etc/$app/config.exs"
|
||||||
|
cat "../conf/ldap.exs" >> "$config"
|
||||||
|
ynh_replace_string --match_string="config :pleroma, configurable_from_database: false" --replace_string="config :pleroma, configurable_from_database: true" --target_file="$config"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue