Link shortener in Rust. https://s.42l.fr/
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.
 
 
 
 

76 lines
2.2 KiB

  1. # rs-short configuration file
  2. # See also:
  3. # - banned_url_from.list: Forbidden redirection names
  4. # - banned_url_to.list: Forbidden websites to redirect to
  5. # Do not edit this manually unless you know what you are doing
  6. config_version = 1
  7. [general]
  8. # Address and port to listen on
  9. listening_address = "0.0.0.0:8080"
  10. # SQLite database path
  11. database_path = "./db/db.sqlite"
  12. # Your (sub)domain for rs-short
  13. # with https://, without the trailing slash
  14. instance_hostname = "s.example.com"
  15. # Your name (used in various places)
  16. hoster_name = "ExampleSoft"
  17. # Your website
  18. hoster_hostname = "example.com"
  19. # Your terms of service
  20. hoster_tos = "https://example.com/ToS"
  21. # A link to your contact details
  22. # Needed to fight phishing or general purposes
  23. # Can be https:, mailto: or whatever
  24. contact = "mailto:contact@example.com"
  25. # Theme (light or dark). If you make new themes, please
  26. # contact us so we can add them to the main repository!
  27. theme = "light"
  28. # Key used to encrypt the cookie key.
  29. # Don't leave it empty!!
  30. # `openssl rand -base64 48`
  31. cookie_key = "CHANGE ME"
  32. # Find a compromise between accessibility and protection
  33. # against spambots. Don't forget that a good captcha **won't**
  34. # protect you against human spammers, and lots of them **are** human.
  35. # 0 = easiest / 5 = hardest
  36. captcha_difficulty = 3
  37. [phishing]
  38. # Writes every created link in console for easier monitoring
  39. # to fight phishing at the cost of users' privacy
  40. # Please use this feature with caution and consideration.
  41. verbose_console = false
  42. # Warns in console when there is an unusual activity on a link.
  43. # Needs to temporarily store user IPs and timestamps to RAM.
  44. verbose_suspicious = true
  45. # Per link, starting from how many clicks per suspicious_click_delay
  46. # a link is considered suspicious.
  47. # Default: Starting from 25 clicks in a timeframe of 12 hours.
  48. # Only if verbose_suspicious is true
  49. suspicious_click_count = 25
  50. # In hours.
  51. # See above.
  52. suspicious_click_timeframe = 12
  53. # Admin password to mark a link as phish link
  54. # example.com/<bad_link>/<secret>/phishing/<phishing_password>
  55. # You must use characters that are safe to use in URLs
  56. # (let's say, alphanumeric characters)
  57. phishing_password = "edit me >///<"