Remove unnecessary files related to updating who.ini
This commit is contained in:
parent
916d40542e
commit
ae97c9120b
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Update who.ini when exists PROXY_CKAN_LOCATION
|
|
||||||
echo "[docker-entrypoint.00_update_who] Update who.ini"
|
|
||||||
if [ -n "$PROXY_CKAN_LOCATION" ] && [ "$PROXY_CKAN_LOCATION" != "/" ]; then
|
|
||||||
sed -i "s|\${WHO_LOCATION}|$PROXY_CKAN_LOCATION|g" "${APP_DIR}/who.ini";
|
|
||||||
else
|
|
||||||
# Check if the value is exactly "/"
|
|
||||||
if [ "$PROXY_CKAN_LOCATION" = "/" ]; then
|
|
||||||
sed -i "s|\${WHO_LOCATION}||g" "${APP_DIR}/who.ini";
|
|
||||||
else
|
|
||||||
# Handle the case when $PROXY_CKAN_LOCATION is empty or not set
|
|
||||||
sed -i "s|\${WHO_LOCATION}|/|g" "${APP_DIR}/who.ini";
|
|
||||||
fi
|
|
||||||
fi
|
|
|
@ -1,32 +0,0 @@
|
||||||
[plugin:auth_tkt]
|
|
||||||
use=ckan.lib.repoze_plugins.auth_tkt:make_plugin
|
|
||||||
# If no secret key is defined here, beaker.session.secret will be used
|
|
||||||
#secret = somesecret
|
|
||||||
|
|
||||||
[plugin:friendlyform]
|
|
||||||
use=ckan.lib.repoze_plugins.friendly_form:FriendlyFormPlugin
|
|
||||||
login_form_url=${WHO_LOCATION}/user/login
|
|
||||||
login_handler_path=/login_generic
|
|
||||||
logout_handler_path=/user/logout
|
|
||||||
rememberer_name=auth_tkt
|
|
||||||
post_login_url=${WHO_LOCATION}/user/logged_in
|
|
||||||
post_logout_url=${WHO_LOCATION}/user/logged_out
|
|
||||||
charset=utf-8
|
|
||||||
|
|
||||||
[general]
|
|
||||||
request_classifier=repoze.who.classifiers:default_request_classifier
|
|
||||||
challenge_decider=repoze.who.classifiers:default_challenge_decider
|
|
||||||
|
|
||||||
[identifiers]
|
|
||||||
plugins =
|
|
||||||
friendlyform;browser
|
|
||||||
auth_tkt
|
|
||||||
|
|
||||||
[authenticators]
|
|
||||||
plugins =
|
|
||||||
auth_tkt
|
|
||||||
ckan.lib.authenticator:UsernamePasswordAuthenticator
|
|
||||||
|
|
||||||
[challengers]
|
|
||||||
plugins =
|
|
||||||
friendlyform;browser
|
|
Loading…
Reference in New Issue