mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
19 lines
732 B
Bash
Executable File
19 lines
732 B
Bash
Executable File
export HOST_IP=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1)
|
|
export APP_URL="http://${HOST_IP}:4000"
|
|
|
|
export APP_CONFIG_AUTH_TYPE="OAUTH"
|
|
export APP_CONFIG_OAUTH2_HOST="http://${HOST_IP}:8085/auth/realms/alfresco"
|
|
export APP_CONFIG_OAUTH2_CLIENTID="alfresco"
|
|
export APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI="${APP_URL}/assets/silent-refresh.html"
|
|
export APP_CONFIG_OAUTH2_REDIRECT_LOGIN="/"
|
|
export APP_CONFIG_OAUTH2_REDIRECT_LOGOUT="/logout"
|
|
|
|
docker-compose -f docker-compose-keycloak.yml up -d --build
|
|
|
|
echo "Waiting for the app..."
|
|
npm run wait:app
|
|
|
|
echo "HOST_IP: ${HOST_IP}"
|
|
echo "Realm: ${APP_CONFIG_OAUTH2_HOST}"
|
|
echo "Content Workspace: ${APP_URL}"
|