mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
modify nginx config for federation modules
This commit is contained in:
parent
b333bb0b06
commit
757053b735
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
location /api/$FEDERATION_APIVERSION {
|
location /api/$FEDERATION_APIVERSION {
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
|||||||
@ -75,6 +75,7 @@ export BUILD_COMMIT="$(git rev-parse HEAD)"
|
|||||||
# Generate gradido.conf from template
|
# Generate gradido.conf from template
|
||||||
# *** 1st prepare for each apiversion the federation conf for nginx from federation-template
|
# *** 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
|
# *** set FEDERATION_PORT from FEDERATION_COMMUNITY_APIS and create gradido-federation.conf file
|
||||||
|
rm $NGINX_CONFIG_DIR/gradido-federation.conf
|
||||||
echo "================================================================================================"
|
echo "================================================================================================"
|
||||||
IFS="," read -a API_ARRAY <<< $FEDERATION_COMMUNITY_APIS
|
IFS="," read -a API_ARRAY <<< $FEDERATION_COMMUNITY_APIS
|
||||||
for api in "${API_ARRAY[@]}"
|
for api in "${API_ARRAY[@]}"
|
||||||
@ -91,8 +92,7 @@ done
|
|||||||
echo "================================================================================================"
|
echo "================================================================================================"
|
||||||
|
|
||||||
# *** 2nd read gradido-federation.conf file in env variable
|
# *** 2nd read gradido-federation.conf file in env variable
|
||||||
FEDERATION_NGINX_CONF < $NGINX_CONFIG_DIR/gradido-federation.conf
|
export FEDERATION_NGINX_CONF < $NGINX_CONFIG_DIR/gradido-federation.conf
|
||||||
export FEDERATION_NGINX_CONF
|
|
||||||
echo "FEDERATION_NGINX_CONF=$FEDERATION_NGINX_CONF"
|
echo "FEDERATION_NGINX_CONF=$FEDERATION_NGINX_CONF"
|
||||||
|
|
||||||
# *** 3rd generate gradido nginx config including federation modules per api-version
|
# *** 3rd generate gradido nginx config including federation modules per api-version
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user