ds_http_settings.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <div class="gf-form-group">
  2. <h3 class="page-heading">Http settings</h3>
  3. <div class="gf-form-inline">
  4. <div class="gf-form max-width-30">
  5. <span class="gf-form-label width-7">Url</span>
  6. <input class="gf-form-input" 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>
  7. <info-popover mode="right-absolute">
  8. <p>Specify a complete HTTP url (for example http://your_server:8080)</p>
  9. <span ng-show="current.access === 'direct'">
  10. Your access method is <em>Direct</em>, this means the url
  11. needs to be accessable from the browser.
  12. </span>
  13. <span ng-show="current.access === 'proxy'">
  14. Your access method is currently <em>Proxy</em>, this means the url
  15. needs to be accessable from the grafana backend.
  16. </span>
  17. </info-popover>
  18. </div>
  19. </div>
  20. <div class="gf-form-inline">
  21. <div class="gf-form max-width-30">
  22. <span class="gf-form-label width-7">Access</span>
  23. <div class="gf-form-select-wrapper gf-form-select-wrapper--has-help-icon max-width-24">
  24. <select class="gf-form-input" ng-model="current.access" ng-options="f for f in ['direct', 'proxy']"></select>
  25. <info-popover mode="right-absolute">
  26. Direct = url is used directly from browser<br>
  27. Proxy = Grafana backend will proxy the request
  28. </info-popover>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="gf-form-inline">
  33. <div class="gf-form">
  34. <label class="gf-form-label width-7">Http Auth</label>
  35. </div>
  36. <gf-form-switch class="gf-form"
  37. label="Basic Auth"
  38. checked="current.basicAuth" switch-class="max-width-6">
  39. </gf-form-switch>
  40. <gf-form-switch class="gf-form"
  41. label="With Credentials"
  42. checked="current.withCredentials" switch-class="max-width-6">
  43. </gf-form-switch>
  44. </div>
  45. <div class="gf-form" ng-if="current.basicAuth">
  46. <span class="gf-form-label width-7">
  47. User
  48. </span>
  49. <input class="gf-form-input max-width-21" type="text" ng-model='current.basicAuthUser' placeholder="user" required></input>
  50. </div>
  51. <div class="gf-form" ng-if="current.basicAuth">
  52. <span class="gf-form-label width-7">
  53. Passord
  54. </span>
  55. <input class="gf-form-input max-width-21" type="password" ng-model='current.basicAuthPassword' placeholder="password" required></input>
  56. </div>
  57. </div>