From 0f4d132972a04a74411f16a0e6cbfb99f524719b Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sat, 21 Oct 2023 23:46:09 +0200 Subject: [PATCH] Don't 302 to docs on / --- conf/nginx.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 1004e1c..07dd39a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,9 +1,11 @@ rewrite ^__PATH__$ __PATH__/ permanent; + +location = __PATH__/ { + add_header Content-Type text/plain; + return 200 'Syncstorage is running'; +} + location __PATH__/ { - - # Path to source - alias __INSTALL_DIR__/ ; - include uwsgi_params; # Needed for long running operations in admin interface proxy_pass http://127.0.0.1:__PORT__/;