ds_http_settings.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <div class="gf-form-group">
  2. <h3 class="page-heading">Http settings</h3>
  3. <div class="gf-form">
  4. <span class="gf-form-label width-7">Url</span>
  5. <input class="gf-form-input max-width-21" type="text" ng-model='current.url' placeholder="for example: http://localhost:8081" ng-pattern="/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/" required></input>
  6. <info-popover>
  7. <p>Specify a complete HTTP url (for example http://your_server:8080)</p>
  8. <span ng-show="current.access === 'direct'">
  9. Your access method is <em>Direct</em>, this means the url
  10. needs to be accessable from the browser.
  11. </span>
  12. <span ng-show="current.access === 'proxy'">
  13. Your access method is currently <em>Proxy</em>, this means the url
  14. needs to be accessable from the grafana backend.
  15. </span>
  16. </info-popover>
  17. </div>
  18. <div class="gf-form">
  19. <span class="gf-form-label width-7">
  20. Access <tip>Direct = url is used directly from browser, Proxy = Grafana backend will proxy the request</tip>
  21. </span>
  22. <div class="gf-form-select-wrapper">
  23. <select class="gf-form-input gf-size-auto" ng-model="current.access" ng-options="f for f in ['direct', 'proxy']"></select>
  24. </div>
  25. </div>
  26. <div class="gf-form-inline">
  27. <div class="gf-form">
  28. <label class="gf-form-label width-7">Http Auth</label>
  29. </div>
  30. <gf-form-switch class="gf-form"
  31. label="Basic Auth"
  32. checked="current.basicAuth" switch-class="max-width-6">
  33. </gf-form-switch>
  34. <gf-form-switch class="gf-form"
  35. label="With Credentials"
  36. checked="current.withCredentials" switch-class="max-width-6">
  37. </gf-form-switch>
  38. </div>
  39. <div class="gf-form" ng-if="current.basicAuth">
  40. <span class="gf-form-label width-7">
  41. User
  42. </span>
  43. <input class="gf-form-input max-width-21" type="text" ng-model='current.basicAuthUser' placeholder="user" required></input>
  44. </div>
  45. <div class="gf-form" ng-if="current.basicAuth">
  46. <span class="gf-form-label width-7">
  47. Passord
  48. </span>
  49. <input class="gf-form-input max-width-21" type="password" ng-model='current.basicAuthPassword' placeholder="password" required></input>
  50. </div>
  51. </div>