mirror of
https://github.com/YunoHost-Apps/dex_ynh.git
synced 2024-09-03 18:26:22 +02:00
fix
This commit is contained in:
parent
7c344e9940
commit
2be5d462b8
8 changed files with 17 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
||||||
# LDAP connector + Yunohost setup + staticClient as per manifest.json
|
# LDAP connector + Yunohost setup + staticClient as per manifest.json
|
||||||
issuer: https://__DOMAIN____PATH_URL__
|
issuer: https://__DOMAIN____PATH__
|
||||||
storage:
|
storage:
|
||||||
type: sqlite3
|
type: sqlite3
|
||||||
config:
|
config:
|
||||||
|
@ -47,8 +47,8 @@ connectors:
|
||||||
# Unfortunately the api is too complex to be used here
|
# Unfortunately the api is too complex to be used here
|
||||||
# As a consequence we have to setup client as staticClient, which means we will need one Dex instance per client app
|
# As a consequence we have to setup client as staticClient, which means we will need one Dex instance per client app
|
||||||
staticClients:
|
staticClients:
|
||||||
- id: __OIDC_NAME__
|
- id: __NAME__
|
||||||
redirectURIs:
|
redirectURIs:
|
||||||
- https://__OIDC_CALLBACK__
|
- https://__CALLBACK__
|
||||||
name: __OIDC_NAME__
|
name: __NAME__
|
||||||
secret: __OIDC_SECRET__
|
secret: __SECRET__
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
### À utiliser avec précaution :
|
### À utiliser avec précaution :
|
||||||
|
|
||||||
* La modification de l'URL fonctionnera mais nécessitera certains changements de paramètres dans l'application en utilisant Dex comme fournisseur OIDC.
|
* La modification de l'URL fonctionnera mais nécessitera certains changements de paramètres dans l'application en utilisant Dex comme fournisseur OIDC.
|
||||||
* Accéder à l'URL ne vous permettra de voir qu'un message : "C'est ici que Dex est installé".
|
* Accéder à l'URL ne vous permettra de voir qu'un message : "This is where Dex is installed.".
|
|
@ -40,18 +40,18 @@ ram.runtime = "50M"
|
||||||
type = "group"
|
type = "group"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
[install.OIDC_name]
|
[install.name]
|
||||||
ask.en = "Name of the app you want to connect to the OIDC auth flow"
|
ask.en = "Name of the app you want to connect to the OIDC auth flow"
|
||||||
ask.fr = "Nom de l'application que vous souhaitez connecter au flux d'authentification OIDC"
|
ask.fr = "Nom de l'application que vous souhaitez connecter au flux d'authentification OIDC"
|
||||||
type = "string"
|
type = "string"
|
||||||
|
|
||||||
|
|
||||||
[install.OIDC_secret]
|
[install.secret]
|
||||||
ask.en = "OIDC secret of the app you want to connect to the OIDC auth flow"
|
ask.en = "OIDC secret of the app you want to connect to the OIDC auth flow"
|
||||||
ask.fr = "Secret OIDC de l'application que vous souhaitez connecter au flux d'authentification OIDC"
|
ask.fr = "Secret OIDC de l'application que vous souhaitez connecter au flux d'authentification OIDC"
|
||||||
type = "string"
|
type = "string"
|
||||||
|
|
||||||
[install.OIDC_callback]
|
[install.callback]
|
||||||
ask.en = "Callback URI required by the app you want to connect to the OIDC auth flow"
|
ask.en = "Callback URI required by the app you want to connect to the OIDC auth flow"
|
||||||
ask.fr = "URI de rappel requis par l'application que vous souhaitez connecter au flux d'authentification OIDC"
|
ask.fr = "URI de rappel requis par l'application que vous souhaitez connecter au flux d'authentification OIDC"
|
||||||
type = "string"
|
type = "string"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
GO_VERSION="1.19"
|
GO_VERSION="1.20"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -14,8 +14,8 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
|
||||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
ynh_script_progression --message="Removing $app service integration..." --weight=1
|
||||||
|
|
|
@ -23,7 +23,7 @@ chown -R $app:www-data "$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE SYSTEMD
|
# RESTORE SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ yunohost service add $app --description="OpenID Connect Provider" --log="/var/lo
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
|
||||||
|
|
||||||
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"
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ chown $app:$app "$install_dir/config.yaml"
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
|
@ -10,6 +10,6 @@ test_format = 1.0
|
||||||
# Default args to use for install
|
# Default args to use for install
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
|
|
||||||
args.OIDC_name="Outline"
|
args.name = "Outline"
|
||||||
args.OIDC_secret="secret"
|
args.secret = "secret"
|
||||||
args.OIDC_callback="domain.tld/callback"
|
args.callback = "domain.tld/callback"
|
Loading…
Reference in a new issue