diff --git a/deploy/template/nginx_app.conf.sh b/deploy/template/nginx_app.conf.sh index 0c8ed7fb96..12c4afeb99 100644 --- a/deploy/template/nginx_app.conf.sh +++ b/deploy/template/nginx_app.conf.sh @@ -24,11 +24,11 @@ $NGINX_SSL_CMNT server_name $custom_domain ; root /var/www/certbot; } - proxy_set_header X-Forwarded-Proto \$scheme; - proxy_set_header X-Forwarded-Host \$host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; location / { - try_files \$uri /index.html =404; + try_files $uri /index.html =404; sub_filter __APPSMITH_SENTRY_DSN__ '\''${APPSMITH_SENTRY_DSN}'\''; sub_filter __APPSMITH_APPSMITH_HOTJAR_HJID__ '\''${APPSMITH_HOTJAR_HJID}'\''; @@ -69,14 +69,14 @@ $NGINX_SSL_CMNT $NGINX_SSL_CMNT include /etc/letsencrypt/options-ssl-nginx.conf; $NGINX_SSL_CMNT ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; $NGINX_SSL_CMNT -$NGINX_SSL_CMNT proxy_set_header X-Forwarded-Proto \$scheme; -$NGINX_SSL_CMNT proxy_set_header X-Forwarded-Host \$host; +$NGINX_SSL_CMNT proxy_set_header X-Forwarded-Proto $scheme; +$NGINX_SSL_CMNT proxy_set_header X-Forwarded-Host $host; $NGINX_SSL_CMNT $NGINX_SSL_CMNT root /var/www/appsmith; $NGINX_SSL_CMNT index index.html index.htm; $NGINX_SSL_CMNT $NGINX_SSL_CMNT location / { -$NGINX_SSL_CMNT try_files \$uri /index.html =404; +$NGINX_SSL_CMNT try_files $uri /index.html =404; $NGINX_SSL_CMNT $NGINX_SSL_CMNT sub_filter __APPSMITH_SENTRY_DSN__ '\''${APPSMITH_SENTRY_DSN}'\''; $NGINX_SSL_CMNT sub_filter __APPSMITH_APPSMITH_HOTJAR_HJID__ '\''${APPSMITH_HOTJAR_HJID}'\'';