http_settings.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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="http://my.server.com:8080" ng-pattern="/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/" required></input>
  6. <gf-popover>
  7. <p>Specify a complete HTTP url (http://your_server:8080)</p>
  8. <span ng-show="current.access === 'direct'">
  9. Your access method is <code>Direct</code>, 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 <code>Proxy</code>, this means the url
  14. needs to be accessable from the grafana backend.
  15. </span>
  16. </gf-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. <select class="gf-form-input gf-size-auto" ng-model="current.access" ng-options="f for f in ['direct', 'proxy']"></select>
  23. </div>
  24. <div class="gf-form">
  25. <span class="gf-form-label width-7">
  26. Http Auth
  27. </span>
  28. <editor-checkbox text="Basic Auth" model="current.basicAuth"></editor-checkbox>
  29. <editor-checkbox text="With Credentials" model="current.withCredentials"></editor-checkbox><tip>Tip for with credentials</tip>
  30. </div>
  31. <div class="gf-form" ng-if="current.basicAuth">
  32. <span class="gf-form-label width-7">
  33. User
  34. </span>
  35. <input class="gf-form-input max-width-21" type="text" ng-model='current.basicAuthUser' placeholder="user" required></input>
  36. </div>
  37. <div class="gf-form" ng-if="current.basicAuth">
  38. <span class="gf-form-label width-7">
  39. Passord
  40. </span>
  41. <input class="gf-form-input max-width-21" type="password" ng-model='current.basicAuthPassword' placeholder="password" required></input>
  42. </div>
  43. </div>