http_settings.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <h3>Http settings</h3>
  2. <div class="gf-form-group">
  3. <div class="gf-form">
  4. <span class="gf-form-label gf-size-xs">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-sx">
  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. <br>
  14. <div class="gf-form">
  15. <span class="gf-form-label gf-size-xs">
  16. Http Auth
  17. </span>
  18. <editor-checkbox text="Basic Auth" model="current.basicAuth"></editor-checkbox>
  19. <editor-checkbox text="With Credentials" model="current.withCredentials"></editor-checkbox><tip>Tip for with credentials</tip>
  20. </div>
  21. <div class="gf-form" ng-if="current.basicAuth">
  22. <span class="gf-form-label gf-size-xs">
  23. User
  24. </span>
  25. <input class="gf-form-input gf-size-max-xxl" type="text" ng-model='current.basicAuthUser' placeholder="user" required></input>
  26. </div>
  27. <div class="gf-form" ng-if="current.basicAuth">
  28. <span class="gf-form-label gf-size-xs">
  29. Passord
  30. </span>
  31. <input class="gf-form-input gf-size-max-xxl" type="password" ng-model='current.basicAuthPassword' placeholder="password" required></input>
  32. </div>
  33. </div>