Browse Source

Default to login with edith notes

Bob Mottram 7 years ago
parent
commit
84476be49b
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/freedombone-app-edith

+ 4
- 4
src/freedombone-app-edith View File

336
         function_check nginx_limits
336
         function_check nginx_limits
337
         nginx_limits $EDITH_DOMAIN_NAME '15m'
337
         nginx_limits $EDITH_DOMAIN_NAME '15m'
338
         echo '    try_files $uri $uri/ /index.php?$args;' >> $edith_nginx_site
338
         echo '    try_files $uri $uri/ /index.php?$args;' >> $edith_nginx_site
339
-        echo "    #auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
340
-        echo '    #auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
339
+        echo "    auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
340
+        echo '    auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
341
         echo '  }' >> $edith_nginx_site
341
         echo '  }' >> $edith_nginx_site
342
         echo '}' >> $edith_nginx_site
342
         echo '}' >> $edith_nginx_site
343
     else
343
     else
372
     function_check nginx_limits
372
     function_check nginx_limits
373
     nginx_limits $EDITH_DOMAIN_NAME '15m'
373
     nginx_limits $EDITH_DOMAIN_NAME '15m'
374
     echo '    try_files $uri $uri/ /index.php?$args;' >> $edith_nginx_site
374
     echo '    try_files $uri $uri/ /index.php?$args;' >> $edith_nginx_site
375
-    echo "    #auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
376
-    echo '    #auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
375
+    echo "    auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
376
+    echo '    auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
377
     echo '  }' >> $edith_nginx_site
377
     echo '  }' >> $edith_nginx_site
378
     echo '}' >> $edith_nginx_site
378
     echo '}' >> $edith_nginx_site
379
 
379