http_settings.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <h3>Http settings</h3>
  2. <div class="gf-form-group">
  3. <div class="gf-form">
  4. <span class="gf-form-label gf-size-s">Url</span>
  5. <input class="gf-form-input gf-size-xxl" type="text" ng-model='current.url' placeholder="http://my.server.com:8080" ng-pattern="/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/" required></input>
  6. </div>
  7. <br>
  8. <div class="gf-form">
  9. <span class="gf-form-label gf-size-s">
  10. Access <tip>Direct = url is used directly from browser, Proxy = Grafana backend will proxy the request</tip>
  11. </span>
  12. <select class="gf-form-input gf-size-auto" ng-model="current.access" ng-options="f for f in ['direct', 'proxy']"></select>
  13. </div>
  14. <br>
  15. <div class="gf-form">
  16. <span class="gf-form-label gf-size-s">
  17. Http Auth
  18. </span>
  19. </div>
  20. <span class="gf-form">
  21. <editor-checkbox text="Basic Auth" model="current.basicAuth"></editor-checkbox>
  22. </span>
  23. <span class="gf-form">
  24. <editor-checkbox text="With Credentials" model="current.withCredentials"></editor-checkbox><tip>Tip for with credentials</tip>
  25. </span>
  26. <br>
  27. <div class="gf-form" ng-if="current.basicAuth">
  28. <span class="gf-form-label gf-size-s">
  29. User
  30. </span>
  31. <input class="gf-form-input gf-size-xl" type="text" ng-model='current.basicAuthUser' placeholder="user" required></input>
  32. </div>
  33. <br>
  34. <div class="gf-form" ng-if="current.basicAuth">
  35. <span class="gf-form-label gf-size-s">
  36. Passord
  37. </span>
  38. <input class="gf-form-input gf-size-xl" type="password" ng-model='current.basicAuthPassword' placeholder="password" required></input>
  39. </div>
  40. </div>