application.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # https://www.playframework.com/documentation/latest/Configuration
  2. play.application.loader=NiosxApplicationLoader
  3. play.editor="http://localhost:63342/api/file/?file=%s&line=%s"
  4. play.http.errorHandler = play.api.http.HtmlOrJsonHttpErrorHandler
  5. play.akka.actor-system = "niosx-actor"
  6. contexts {
  7. repository-dispatcher {
  8. executor = "thread-pool-executor"
  9. throughput = 1
  10. thread-pool-executor {
  11. fixed-pool-size = 20
  12. }
  13. }
  14. }
  15. play.http.secret.key="changeme"
  16. play.http.secret.key=${?APPLICATION_SECRET}
  17. play.server.pidfile.path=/dev/null
  18. #Override these for different projects
  19. baseUri="https://api.milli.link/"
  20. play.filters.hosts {
  21. # Allow requests to milli.link, its subdomains, and localhost:9000.
  22. allowed = [".milli.link", "localhost:9000", "localhost:9101", "api.milli.link"]
  23. }
  24. play.modules {
  25. enabled += "play.filters.cors.CORSModule"
  26. # enabled += "play.filters.headers.SecurityHeadersModule"
  27. # enabled += "play.filters.hosts.AllowedHostsModule"
  28. # enabled += "play.filters.gzip.GzipFilterModule"
  29. # enabled += "play.filters.https.RedirectHttpsModule"
  30. }
  31. play.filters.enabled += play.filters.cors.CORSFilter
  32. play.filters.cors {
  33. allowedOrigins = null
  34. #allowedHttpMethods = ["GET", "POST"]
  35. #allowedHttpHeaders = ["Accept"]
  36. #preflightMaxAge = 3 days
  37. }
  38. #Authentication
  39. default.admin.password="changeme"
  40. default.admin.password=${?DEFAULT_ADMIN_PASS}
  41. default.bulk.upload.key="bulkupload"
  42. default.bulk.upload.key=${?BULK_UPLOAD_KEY}
  43. #JanusGraph
  44. dev.mode=true
  45. dev.mode=${?DEV_MODE}
  46. #TODO: Move to resource file
  47. #TODO: Resource translation tool creation and enable I18n
  48. niosx.resource {
  49. default {
  50. image.alt="No accessibility aid has been made available for this image."
  51. }
  52. #Palestinian Arabic https://iso639-3.sil.org/code/ajp
  53. ajp {
  54. lang {
  55. code="ajp"
  56. iso639="https://iso639-3.sil.org/code/ajp"
  57. textDire="RTL"
  58. }
  59. #"There is no translation for this resource."
  60. TRANSLATION_ERROR="لا توجد ترجمة لهذا المورد"
  61. #image.alt="تضامنا مع عمال العالم."
  62. }
  63. }
  64. #Local installation
  65. local=true
  66. local=${?LOCAL}
  67. #include "securesocial.conf"