Simple image host.
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.

conf.json.example 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "title": "Spus",
  3. "base_url": "http://example.com",
  4. "port": 8081,
  5. # PostrgeSQL credentials
  6. "db": {
  7. "host": "localhost",
  8. "user": "dbuser",
  9. "password": "dbpass",
  10. "database": "spus"
  11. },
  12. # HTTPS settings
  13. "use_https": false,
  14. "https": {
  15. "key": "",
  16. "cert": ""
  17. },
  18. # Open Web Analytics settings
  19. "use_owa": false,
  20. "owa": {
  21. "base_url": "",
  22. "site_id": ""
  23. },
  24. # Scrypt settings for password hashing
  25. "scrypt": {
  26. "maxtime": 1
  27. },
  28. # Should we minify resources?
  29. "minify": true,
  30. # Timeout in milliseconds before a session is destroyed
  31. "session_timeout": 1800000,
  32. # Various directories
  33. "dir": {
  34. "imgs": "imgs",
  35. "web": "web"
  36. },
  37. # In debug mode, an uncaught exception will stop the program and display
  38. # a neat stack trace.
  39. "debug": false,
  40. # To invalidate cache, we add "?$n" to static resource requests
  41. # (scripts, CSS, etc.), where "$n" is an incrementing number.
  42. # `max_runs` is how big $n can be before we reset to 0.
  43. "max_runs": 9999,
  44. # Time in seconds before static content caches are invalidated
  45. "cache_max_age": 2628000,
  46. # Time in seconds before image caches are invalidated
  47. "cache_max_age_images": 2628000,
  48. # How long time it should take before anonymous images are deleted
  49. "purge_collections_timeout": "2 days",
  50. # Time in milliseconds between each time we query the database for old
  51. # anonymous pictures
  52. "purge_collections_interval": 1800000
  53. }