config.toml.sample 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. # Flask Framework Configuration
  20. [twisted]
  21. # Network interface to listen on:
  22. # - local only, use 'localhost'
  23. # - ipv4 only, use '0.0.0.0'
  24. # - both ipv4 or ipv6, use '::'
  25. host = '::'
  26. # Port to listen. Unlike old versions, only this port is used.
  27. port = 8888
  28. [credential]
  29. # Credentials can be used to break auth wall, visit paid resources and unlock video qualities.
  30. use_cred = false
  31. # Sensitive infomation, don't tell anybody. For gathering these, see https://nemo2011.github.io/bilibili-api/#/get-credential.
  32. sessdata = ''
  33. bili_jct = ''
  34. buvid3 = ''
  35. dedeuserid = ''
  36. # Refresh token, can be obtained from the main page by examing `window.localStorage.ac_time_value'.
  37. ac_time_value = ''
  38. [proxy]
  39. # If your server is located in China, videos and audo-only videos may likely break if not using proxy.
  40. video = true
  41. image = true
  42. [render]
  43. use_pandoc = false
  44. article_allowed_formats = ['markdown', 'plain', 'html']
  45. [display]
  46. default_theme = 'wayback'
  47. [redis]
  48. host = 'localhost'
  49. port = 6379
  50. #username = ''
  51. #password = ''