http_settings.html 1.5 KB

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