http_settings.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 style="display: none">
  7. Help
  8. </gf-popover>
  9. </div>
  10. <div class="gf-form">
  11. <span class="gf-form-label width-7">
  12. Access <tip>Direct = url is used directly from browser, Proxy = Grafana backend will proxy the request</tip>
  13. </span>
  14. <select class="gf-form-input gf-size-auto" ng-model="current.access" ng-options="f for f in ['direct', 'proxy']"></select>
  15. </div>
  16. <div class="gf-form">
  17. <span class="gf-form-label width-7">
  18. Http Auth
  19. </span>
  20. <editor-checkbox text="Basic Auth" model="current.basicAuth"></editor-checkbox>
  21. <editor-checkbox text="With Credentials" model="current.withCredentials"></editor-checkbox><tip>Tip for with credentials</tip>
  22. </div>
  23. <div class="gf-form" ng-if="current.basicAuth">
  24. <span class="gf-form-label width-7">
  25. User
  26. </span>
  27. <input class="gf-form-input max-width-21" type="text" ng-model='current.basicAuthUser' placeholder="user" required></input>
  28. </div>
  29. <div class="gf-form" ng-if="current.basicAuth">
  30. <span class="gf-form-label width-7">
  31. Passord
  32. </span>
  33. <input class="gf-form-input max-width-21" type="password" ng-model='current.basicAuthPassword' placeholder="password" required></input>
  34. </div>
  35. </div>