config.toml.sample 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. [site]
  2. site_name = 'MikuInvidious'
  3. site_url = 'https://example.org'
  4. # You are required to set this if you have any modification to the source code.
  5. # Learn more at https://www.gnu.org/licenses/agpl-3.0.html.
  6. site_modified_source_code_url = false
  7. # This will not really disable download, it just not shows it.
  8. site_allow_download = true
  9. # This will allow (potentially unsafe) error response to be showed directly on site.
  10. site_show_unsafe_error_response = false
  11. # This controls whether the search engines will index your site or not.
  12. # Available options:
  13. # - 'strict', indexing is disallowed.
  14. # - 'relexed', search engines can index articles and search page.
  15. # - 'PLEASE_INDEX_EVERYTHING', a VERY DANGEROUS option, may give you a lawsuit.
  16. # Default to 'strict'.
  17. robots_policy = 'strict'
  18. [flask]
  19. host = '0.0.0.0'
  20. # Due to limitation of twisted and flask, this takes up N port and N+1 port.
  21. # The N port is what you need to use for reverse proxies and so.
  22. port = 8888
  23. [credential]
  24. # Credentials can be used to break auth wall, visit paid resources and unlock video qualities.
  25. use_cred = false
  26. # Sensitive infomation, don't tell anybody. For gathering these, see https://nemo2011.github.io/bilibili-api/#/get-credential.
  27. sessdata = ''
  28. bili_jct = ''
  29. buvid3 = ''
  30. dedeuserid = ''
  31. # Refresh token, can be obtained from the main page by examing `window.localStorage.ac_time_value'.
  32. ac_time_value = ''
  33. [proxy]
  34. # If your server is located in China, videos and audo-only videos may likely break if not using proxy.
  35. video = true
  36. image = true
  37. [render]
  38. use_pandoc = false
  39. article_allowed_formats = ['markdown', 'plain', 'html']
  40. [display]
  41. default_theme = 'wayback'