1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dex_ynh.git synced 2024-09-03 18:26:22 +02:00

Merge pull request #2 from Limezy/correct-callback

Correct callback URI + updates
This commit is contained in:
Limezy 2022-03-25 21:17:14 +07:00 committed by GitHub
commit b605ff0c57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 15 deletions

View file

@ -49,6 +49,6 @@ connectors:
staticClients: staticClients:
- id: __OIDC_NAME__ - id: __OIDC_NAME__
redirectURIs: redirectURIs:
- __OIDC_CALLBACK__ - https://__OIDC_CALLBACK__
name: __OIDC_NAME__ name: __OIDC_NAME__
secret: __OIDC_SECRET__ secret: __OIDC_SECRET__

View file

@ -117,9 +117,8 @@ ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION
pushd "$final_path" pushd "$final_path"
# Setup go exe and environnement # Setup go exe and environnement
ynh_use_go ynh_use_go
"$ynh_go" env
# Build server from source # Build server from source
make build make build 2>&1
# Setup a nice Yunohost logo # Setup a nice Yunohost logo
cp /usr/share/yunohost/admin/img/logo.08bab97e.png web/themes/light/logo.png cp /usr/share/yunohost/admin/img/logo.08bab97e.png web/themes/light/logo.png
popd popd

View file

@ -85,14 +85,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --time --weight=1
# Create a dedicated PHP-FPM config
ynh_add_fpm_config
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================
@ -104,10 +96,12 @@ ynh_script_progression --message="Building the sources (it will take some time).
ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION
pushd "$final_path" pushd "$final_path"
# Build the sources # Setup go exe and environnement
ynh_use_go ynh_use_go
unset GOPATH # Build server from source
make build make build 2>&1
# Setup a nice Yunohost logo
cp /usr/share/yunohost/admin/img/logo.08bab97e.png web/themes/light/logo.png
popd popd
ynh_remove_go ynh_remove_go
@ -145,7 +139,7 @@ ynh_use_logrotate --non-append
#================================================= #=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --time --weight=1 ynh_script_progression --message="Integrating service in YunoHost..." --time --weight=1
yunohost service add $app --description="A short description of the app" --log="/var/log/$app/$app.log" yunohost service add $app --description="OpenID Connect Provider" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE