You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

56 lines
2.0 KiB

  1. <!--
  2. Provider List
  3. for the DokuWiki OEmbed plugin.
  4. Important:
  5. Due to the risk of a cross-site scripting attack
  6. [http://en.wikipedia.org/wiki/Cross-site_scripting] only list providers
  7. that you trust. Remove any providers that you do not trust.
  8. Usage:
  9. Each provider element has two attributes: name, which is currently not
  10. used and api which is the API endpoint for the provider's OEmbed
  11. service. Each provider also lists scheme elements which contain the
  12. regular expressions of the URLs for which the API endpoint can be used.
  13. The regular expressions are matched agains the entire URL (no need for
  14. '^$') and case insensitively. The schemes listed on oembed.com are not
  15. valid regular expressions and need to be converted.
  16. Additional providers can be found in the sample-providers.xml file and
  17. a more detailed list of providers can be found on the oembed site
  18. https://oembed.com/providers.json
  19. -->
  20. <providers>
  21. <!-- DIRECT PROVIDERS -->
  22. <!-- Flickr -->
  23. <provider name="Flickr" api="http://www.flickr.com/services/oembed.xml">
  24. <scheme>https?://(.*?\.)?flickr\.com/.*?</scheme>
  25. </provider>
  26. <!-- Twitter -->
  27. <provider name="Twitter" api="https://publish.twitter.com/oembed">
  28. <scheme>https?://twitter\.com/.*?</scheme>
  29. <scheme>https?://www\.twitter\.com/.*?</scheme>
  30. </provider>
  31. <!-- Vimeo -->
  32. <provider name="Vimeo" api="http://www.vimeo.com/api/oembed.{format}">
  33. <scheme>https?://www\.vimeo\.com/.*?</scheme>
  34. <scheme>https?://www\.vimeo\.com/groups/.*?/.*?</scheme>
  35. </provider>
  36. <!-- Youtube -->
  37. <provider name="Youtube" api="https://www.youtube.com/oembed">
  38. <scheme>https?://(.*?\.)?youtube\.com/watch.*?</scheme>
  39. <scheme>https?://(.*?\.)?youtube\.com/v/.*?</scheme>
  40. <scheme>https?://youtu\.be/.*?</scheme>
  41. <scheme>https?://(.*?\.)?youtube\.com/playlist?list=.*?</scheme>
  42. </provider>
  43. <!-- PROXY PROVIDERS -->
  44. </providers>