From 9ec55ac60fbdac0f0caf8ec053fd40dc9a64a872 Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 24 Mar 2022 09:18:31 +0700 Subject: [PATCH] Fine tuning --- conf/config.yaml | 9 +++++---- scripts/install | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/conf/config.yaml b/conf/config.yaml index 4827d02..f8a1ffa 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -1,5 +1,5 @@ # LDAP connector + Yunohost setup + staticClient as per manifest.json -issuer: https://__DOMAIN__/__PATH_URL__ +issuer: https://__DOMAIN____PATH_URL__ storage: type: sqlite3 config: @@ -43,6 +43,7 @@ connectors: staticClients: - id: __OIDC_NAME__ redirectURIs: - - '__OIDC_CALLBACK__' - name: '__OIDC_NAME__' - secret: __OIDC_SECRET__ \ No newline at end of file + - __OIDC_CALLBACK__ + name: __OIDC_NAME__ + secret: __OIDC_SECRET__ + \ No newline at end of file diff --git a/scripts/install b/scripts/install index 7109c31..bd9b426 100755 --- a/scripts/install +++ b/scripts/install @@ -138,7 +138,7 @@ chown $app:$app "$final_path/config.yaml" #================================================= ynh_script_progression --message="Configuring a systemd service..." --time --weight=1 -#TOREMOVE ynh_add_systemd_config +ynh_add_systemd_config #================================================= @@ -164,7 +164,7 @@ yunohost service add $app --description="OpenID Connect Provider" --log="/var/lo ynh_script_progression --message="Starting a systemd service..." --time --weight=1 # Start a systemd service -#TOREMOVE ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" #================================================= # SETUP FAIL2BAN @@ -172,7 +172,8 @@ ynh_script_progression --message="Starting a systemd service..." --time --weight ynh_script_progression --message="Configuring Fail2Ban..." --time --weight=1 # Create a dedicated Fail2Ban config -#TOREMOVE ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login" +### FIX ME +# ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login" #================================================= # SETUP SSOWAT