main-config.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # See; https://www.brow.sh/donate/
  2. # By showing your support you can disable the app's branding and nags to donate.
  3. browsh_supporter = "♥"
  4. # The base query when a non-URL is entered into the URL bar
  5. default_search_engine_base = "https://www.google.com/search?q="
  6. # The mobile user agent for forcing web pages to use their mobile layout
  7. mobile_user_agent = "Mozilla/5.0 (Android 7.0; Mobile; rv:54.0) Gecko/58.0 Firefox/58.0"
  8. [browsh] # Browsh internals
  9. websocket-port = 3334
  10. [firefox]
  11. # The path to your Firefox binary
  12. path = "firefox"
  13. # Browsh has its own profile, seperate from the normal user's. But you can change that.
  14. profile = "browsh-default"
  15. # Don't let Browsh launch Firefox, but make it try to connect to an existing one. Note
  16. # it will need to have been launched with the '--marionette' flag.
  17. use-existing = false
  18. # Launch Firefox in with its visible GUI window. Useful for setting up the Browsh profile.
  19. with-gui = false
  20. [tty]
  21. # The time in milliseconds between requesting a new TTY-sized pixel frame.
  22. # This is essentially the frame rate for graphics. Lower values make for smoother
  23. # animations and feedback, but also increases the CPU load.
  24. small_pixel_frame_rate = 250
  25. [http-server]
  26. port = 4333
  27. bind = "0.0.0.0"
  28. # The time to wait in milliseconds after the DOM is ready before
  29. # trying to parse and render the page's text. Too soon and text risks not being
  30. # parsed, too long and you wait unecessarily.
  31. render_delay = 400
  32. # The length of time in seconds to wait before aborting the page load
  33. timeout = 30
  34. # The dimensions of a char-based window onto a webpage.
  35. # The columns are ultimately the width of the final text. Whereas the rows
  36. # represent the height of the original web page made visible to the original
  37. # browser window. So the number of rows can effect things like how far down a
  38. # web page images are lazy-loaded.
  39. columns = 120
  40. rows = 30
  41. # The amount of lossy JPG compression to apply to the background image of HTML
  42. # pages.
  43. jpeg_compression = 0.9
  44. # Rate limit. For syntax, see: https://github.com/ulule/limiter
  45. rate-limit = "10-M"
  46. # Blocking is useful if the HTTP server is made public. All values are evaluated as
  47. # regular expressions.
  48. blocked-domains = [
  49. "[mail|accounts].google.com"
  50. ]
  51. blocked-user-agents = [
  52. "MJ12bot"
  53. ]
  54. # HTML snippets to show at top and bottom of final page.
  55. header = ""
  56. footer = ""