change replacement logic to insert federation locations

This commit is contained in:
Claus-Peter Hübner 2023-03-01 22:42:14 +01:00
parent 0ee62ef644
commit 211c8f07c0
3 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ server {
} }
# Federation # Federation
$FEDERATION_NGINX_CONF FEDERATION_NGINX_CONF
# TODO this could be a performance optimization # TODO this could be a performance optimization
#location /vue { #location /vue {

View File

@ -99,7 +99,7 @@ server {
} }
# Federation # Federation
$FEDERATION_NGINX_CONF FEDERATION_NGINX_CONF
# TODO this could be a performance optimization # TODO this could be a performance optimization
#location /vue { #location /vue {

View File

@ -101,7 +101,7 @@ case "$NGINX_SSL" in
true) TEMPLATE_FILE="gradido.conf.ssl.template" ;; true) TEMPLATE_FILE="gradido.conf.ssl.template" ;;
*) TEMPLATE_FILE="gradido.conf.template" ;; *) TEMPLATE_FILE="gradido.conf.template" ;;
esac esac
envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $NGINX_CONFIG_DIR/$TEMPLATE_FILE > $NGINX_CONFIG_DIR/gradido.conf.tmp envsubst "$(env | sed -e 's/FEDERATION_NGINX_CONF/\$FEDERATION_NGINX_CONF/g')" < $NGINX_CONFIG_DIR/$TEMPLATE_FILE > $NGINX_CONFIG_DIR/gradido.conf.tmp
envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $NGINX_CONFIG_DIR/gradido.conf.tmp > $NGINX_CONFIG_DIR/gradido.conf envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $NGINX_CONFIG_DIR/gradido.conf.tmp > $NGINX_CONFIG_DIR/gradido.conf
# rm $NGINX_CONFIG_DIR/gradido-federation.conf # rm $NGINX_CONFIG_DIR/gradido-federation.conf