From 9d68025fd92b7d3d4e5e23b43407003df70f5ded Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Fri, 15 Sep 2023 15:50:52 +0530 Subject: [PATCH] feat: Add `/info` endpoint for details about the Appsmith version running (#27345) This just responds with the contents of `/opt/appsmith/info.json` as is, with a JSON content type. This will enable showing the right date on the frontend, as well as on Flow. See [this Slack thread](https://theappsmith.slack.com/archives/C02MUD8DNUR/p1694762058953999?thread_ts=1694757060.520329&cid=C02MUD8DNUR) for the confusion we're solving for. --- deploy/docker/fs/opt/appsmith/templates/nginx-app.conf.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/docker/fs/opt/appsmith/templates/nginx-app.conf.sh b/deploy/docker/fs/opt/appsmith/templates/nginx-app.conf.sh index d92558c39c..862e21a114 100755 --- a/deploy/docker/fs/opt/appsmith/templates/nginx-app.conf.sh +++ b/deploy/docker/fs/opt/appsmith/templates/nginx-app.conf.sh @@ -118,6 +118,11 @@ fi try_files /loading.html \$uri /index.html =404; } + location = /info { + add_header Content-Type application/json; + alias /opt/appsmith/info.json; + } + location ~ ^/static/(js|css|media)\b { # Files in these folders are hashed, so we can set a long cache time. add_header Cache-Control "max-age=31104000, immutable"; # 360 days