mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
include gradido-federation.conf
This commit is contained in:
parent
25634a9cfa
commit
192d052089
@ -113,7 +113,7 @@ server {
|
||||
}
|
||||
|
||||
# Federation
|
||||
$FEDERATION_NGINX_CONF
|
||||
include ./gradido-federation.conf
|
||||
|
||||
# TODO this could be a performance optimization
|
||||
#location /vue {
|
||||
|
||||
@ -99,7 +99,7 @@ server {
|
||||
}
|
||||
|
||||
# Federation
|
||||
$FEDERATION_NGINX_CONF
|
||||
include ./gradido-federation.conf
|
||||
|
||||
# TODO this could be a performance optimization
|
||||
#location /vue {
|
||||
|
||||
@ -77,7 +77,6 @@ export BUILD_COMMIT="$(git rev-parse HEAD)"
|
||||
# *** 1st prepare for each apiversion the federation conf for nginx from federation-template
|
||||
# *** set FEDERATION_PORT from FEDERATION_COMMUNITY_APIS and create gradido-federation.conf file
|
||||
rm -f $NGINX_CONFIG_DIR/gradido-federation.conf
|
||||
rm -f $NGINX_CONFIG_DIR/gradido-federation.conf.append
|
||||
echo "===================================================================================================="
|
||||
IFS="," read -a API_ARRAY <<< $FEDERATION_COMMUNITY_APIS
|
||||
for api in "${API_ARRAY[@]}"
|
||||
@ -89,12 +88,11 @@ do
|
||||
FEDERATION_PORT=$(($FEDERATION_PORT + $port))
|
||||
export FEDERATION_PORT
|
||||
echo " create ngingx config: location /api/$FEDERATION_APIVERSION to http://127.0.0.1:$FEDERATION_PORT"
|
||||
envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $NGINX_CONFIG_DIR/gradido-federation.conf.template >> $NGINX_CONFIG_DIR/gradido-federation.conf.append
|
||||
envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $NGINX_CONFIG_DIR/gradido-federation.conf.template >> $NGINX_CONFIG_DIR/gradido-federation.conf
|
||||
done
|
||||
echo "===================================================================================================="
|
||||
|
||||
# *** 2nd read gradido-federation.conf file in env variable to be replaced in 3rd step
|
||||
envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $NGINX_CONFIG_DIR/gradido-federation.conf.append > $NGINX_CONFIG_DIR/gradido-federation.conf
|
||||
export FEDERATION_NGINX_CONF=$(< $NGINX_CONFIG_DIR/gradido-federation.conf)
|
||||
|
||||
# *** 3rd generate gradido nginx config including federation modules per api-version
|
||||
@ -104,7 +102,6 @@ case "$NGINX_SSL" in
|
||||
*) TEMPLATE_FILE="gradido.conf.template" ;;
|
||||
esac
|
||||
envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $NGINX_CONFIG_DIR/$TEMPLATE_FILE > $NGINX_CONFIG_DIR/gradido.conf
|
||||
# rm $NGINX_CONFIG_DIR/gradido-federation.conf.append
|
||||
# rm $NGINX_CONFIG_DIR/gradido-federation.conf
|
||||
|
||||
# Generate update-page.conf from template
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user