From eabe496fbd76838b3133fe55aec0138c96f36a22 Mon Sep 17 00:00:00 2001 From: Arpit Mohan Date: Fri, 17 Jul 2020 18:31:14 +0530 Subject: [PATCH] Adding the `/login` endpoint to nginx configuration template during deploy process (#122) --- deploy/template/nginx_app.conf.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/deploy/template/nginx_app.conf.sh b/deploy/template/nginx_app.conf.sh index 12c4afeb99..e0f0247874 100644 --- a/deploy/template/nginx_app.conf.sh +++ b/deploy/template/nginx_app.conf.sh @@ -57,6 +57,10 @@ $NGINX_SSL_CMNT server_name $custom_domain ; location /oauth2 { proxy_pass http://appsmith-internal-server:8080; } + + location /login { + proxy_pass http://appsmith-internal-server:8080; + } } $NGINX_SSL_CMNT server { @@ -106,8 +110,12 @@ $NGINX_SSL_CMNT location /oauth2 { $NGINX_SSL_CMNT proxy_pass http://appsmith-internal-server:8080; $NGINX_SSL_CMNT } $NGINX_SSL_CMNT +$NGINX_SSL_CMNT location /login { +$NGINX_SSL_CMNT proxy_pass http://appsmith-internal-server:8080; +$NGINX_SSL_CMNT } +$NGINX_SSL_CMNT $NGINX_SSL_CMNT } ' > nginx_app.conf -sed -in "s/\$NGINX_SSL_CMNT/$NGINX_SSL_CMNT/g" nginx_app.conf -sed -in "s/\$custom_domain/$custom_domain/g" nginx_app.conf \ No newline at end of file +sed -i "s/\$NGINX_SSL_CMNT/$NGINX_SSL_CMNT/g" nginx_app.conf +sed -i "s/\$custom_domain/$custom_domain/g" nginx_app.conf \ No newline at end of file