1
0

rproot.html 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <h3><i class="ui home icon"></i> Set Proxy Root</h3>
  2. <p>For all routing not found in the proxy rule, will be redirected to the proxy root server.</p>
  3. <div class="ui form">
  4. <div class="field">
  5. <label>Proxy Root</label>
  6. <input type="text" id="proxyRoot">
  7. <small>E.g. localhost:8080</small>
  8. </div>
  9. <div class="field">
  10. <div class="ui checkbox">
  11. <input type="checkbox" id="rootReqTLS">
  12. <label>Root require TLS Connection <br><small>(i.e. Your proxy target starts with https://)</small></label>
  13. </div>
  14. </div>
  15. </div>
  16. <br>
  17. <button class="ui teal button" onclick="setProxyRoot()"><i class="home icon" ></i> Set Proxy Root</button>
  18. <div class="ui green message" id="ProxyRootUpdate" style="display:none">
  19. <i class="ui checkmark icon"></i> Proxy Root Updated
  20. </div>
  21. <script>
  22. initRootInfo();
  23. function initRootInfo(){
  24. $.get("/api/proxy/list?type=root", function(data){
  25. if (data == null){
  26. }else{
  27. $("#proxyRoot").val(data.Domain);
  28. }
  29. });
  30. }
  31. </script>