Skip to content
Snippets Groups Projects
Verified Commit dbb7805f authored by Wolfgang Silbermayr's avatar Wolfgang Silbermayr Committed by Andre Fischer
Browse files

Merge branch '1497-add-well-known-endpoint' into 'main'

feat(container): add .well-known/opentalk/client file

Closes #1497

See merge request opentalk/frontend/web/web-app!1842
parents 88ab0861 c01b8b66
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,9 @@
# SPDX-FileCopyrightText: OpenTalk GmbH <mail@opentalk.eu>
#
# SPDX-License-Identifier: EUPL-1.2
HTML_ROOT=/usr/share/nginx/html
ACTIVE_FEATURES="{
userSearch: ${FEATURE_USER_SEARCH:-true},
muteUsers: ${FEATURE_MUTE_USER:-true},
......@@ -61,7 +64,7 @@ if [[ x"${KEYCLOAK_AUTHORITY}" != "x" ]]; then
OIDC_ISSUER=$KEYCLOAK_AUTHORITY
fi
cat >/usr/share/nginx/html/config.js << EOF
cat >$HTML_ROOT/config.js << EOF
window.config = {
logLevel: "${LOG_LEVEL:-info}",
controller: "${CONTROLLER_HOST}",
......@@ -119,3 +122,17 @@ window.config = {
}
}
EOF
CONTROLLER_SCHEMA="https"
if [ "$INSECURE" = "true" ]; then
CONTROLLER_SCHEMA="http"
fi
mkdir -p $HTML_ROOT/.well-known/opentalk
cat >$HTML_ROOT/.well-known/opentalk/client << EOF
{
"opentalk_controller": {
"base_url": "$CONTROLLER_SCHEMA://$CONTROLLER_HOST"
}
}
EOF
......@@ -41,6 +41,10 @@ http {
location /static {
add_header Cache-Control 'public, no-transform, immutable';
}
location /.well-known/opentalk/client {
default_type application/json;
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.