webdav.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <div class="ui message maconly instr" style="display:none; margin-top: 0;">
  2. <h4><i class="apple icon"></i> Login Method for MacOS</h4>
  3. <p>If you are using MacOS, you can select "Connect to Network Server", enter the endpoint of the arozos WebDAV service (<span class="protocol"></span>//<span class="hostname"></span>:<span class="port"></span>/webdav/{vroot_name}) and login with your arozos username and password.</p>
  4. </div>
  5. <div class="ui blue message windowonly nontls instr" style="display:none; margin-top: 0;">
  6. <h4><i class="windows icon"></i> Login Method for Windows (Non SSL / TLS Mode)</h4>
  7. <p>If you are using Windows File Explorer as your WebDAV Client without TLS enabled on arozos server, <b>WebDAV will run in compatibility mode and Basic Auth is not usable. You must authenticate through this Web UI. </b> Please follow the steps below to authenticate your Windows WebDAV Client.</p>
  8. <ol class="ui list">
  9. <li>Mount the WebDAV endpoint in your File Explorer (Endpoint: <span class="protocol"></span>//<span class="hostname"></span>:<span class="port"></span>/webdav/{vroot_name})</li>
  10. <li>Connect with no username and password</li>
  11. <li>You will be directed to a READONLY directory. Refresh this page and see if there is a new client pop up in the "Access Pending Clients" list.</li>
  12. <li>Click "Allow Access" to assign your user storage pool to be accessiable by this Windows WebDAV Client(s). (Sometime more than 1 conncetions will be used by the same File Explorer)</li>
  13. <li>Refresh your file list in File Explorer and your root folder (user:/) should be listed</li>
  14. </ol>
  15. </div>
  16. <div class="ui teal message windowonly tls instr" style="display:none">
  17. <h4><i class="windows icon"></i> Login Method for Windows (With SSL / TLS MODE)</h4>
  18. <p>If you are using Windows File Explorer as your WebDAV Client, go to "My Computer" and add a network drive with the following endpoint: <span class="protocol"></span>//<span class="hostname"></span>:<span class="port"></span>/webdav/{vroot_name}</p>
  19. </div>
  20. <a onclick="showAllInstr(this);" style="cursor: pointer;">Show instruction for other platforms</a>
  21. <script>
  22. var isMac = navigator.platform.indexOf('Mac') > -1;
  23. var isWindows = navigator.platform.indexOf('Win') > -1;
  24. //Update tutorial information
  25. $(".hostname").text(window.location.hostname);
  26. $(".port").text(window.location.port);
  27. if (window.location.port == ""){
  28. $(".port").text("80");
  29. }
  30. $(".protocol").text(location.protocol);
  31. if (isMac){
  32. $(".maconly").show();
  33. }else if (isWindows){
  34. $(".windowonly").show();
  35. }
  36. //Check if running in HTTPS mode. If yes, hide this functions
  37. if (location.protocol == 'https:'){
  38. $("#nontlsWindowsSettings").hide();
  39. $(".nontls").hide();
  40. }else{
  41. $(".tls").hide();
  42. }
  43. function showAllInstr(object){
  44. $(".instr").show();
  45. $(object).hide();
  46. }
  47. </script>