app.ini 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. [general]
  2. page.name = "New awesome project"
  3. application.name = "newAwesomeProject"
  4. [web]
  5. response.browser_caching_enabled = true
  6. response.caching_enabled = true
  7. response.default_headers[] = "Cache-Control: no-cache"
  8. response.default_headers[] = "Strict-Transport-Security: max-age=31536000; includeSubDomains"
  9. response.default_headers[] = "Content-Security-Policy: script-src 'self'"
  10. response.default_headers[] = "X-Frame-Options: SAMEORIGIN"
  11. response.default_headers[] = "X-Content-Type-Options: nosniff"
  12. response.default_headers[] = "Referrer-Policy: no-referrer-when-downgrade"
  13. response.default_headers[] = "Permissions-Policy: microphone=(), usb=()"
  14. view.caching_enabled = true
  15. locale_aliases[de_CH] = "de"
  16. [web : development]
  17. response.browser_caching_enabled = false
  18. response.caching_enabled = false
  19. view.caching_enabled = false
  20. [routing]
  21. ; controllers[] = "/{locale}/example > example\controller\ExampleController"
  22. locales[] = "de_CH"
  23. [mail]
  24. mail_sending_enabled = false
  25. default_addresser = "info@example.com"
  26. address.system_manager = "exceptions@hnm.ch"
  27. address.customer = "info@example.com"
  28. address.notification_recipients[] = "info@example.com"
  29. [mail : live]
  30. mail_sending_enabled = true
  31. [io]
  32. public.file_permission = 0644
  33. public.dir_permission = 0755
  34. private.file_permission = 0600
  35. private.dir_permission = 0700
  36. [io: development]
  37. public.file_permission = 0664
  38. public.dir_permission = 0775
  39. private.file_permission = 0660
  40. private.dir_permission = 0770
  41. [io: test]
  42. public.file_permission = 0664
  43. public.dir_permission = 0775
  44. private.file_permission = 0660
  45. private.dir_permission = 0770
  46. [error]
  47. ; if true php warnings cause exceptions and an error_view is shown
  48. strict_attitude = true
  49. startup.detect_errors = true
  50. ; error_view.default = "atusch\view\status.html"
  51. ; error_view.404 = "atusch\view\notFound.html"
  52. log.save_detail_info = false
  53. log.send_mail = false
  54. log.mail_recipient = "exceptions@hnm.ch"
  55. [error : live]
  56. strict_attitude = false
  57. log.save_detail_info = true
  58. log.send_mail = true
  59. ;log.handle_http_status_exceptions = true
  60. ;log.excluded_http_status_exceptions[] = 404
  61. [database : live]
  62. default.dsn_uri = "mysql:host=localhost;dbname=livedbname"
  63. default.user = "dbuser"
  64. default.password = "pass"
  65. default.transaction_isolation_level = "SERIALIZABLE"
  66. default.dialect = "n2n\impl\persistence\meta\mysql\MysqlDialect"
  67. [database : development]
  68. default.dsn_uri = "mysql:host=localhost;dbname=n2n7_test"
  69. default.user = "root"
  70. default.password = ""
  71. default.transaction_isolation_level = "SERIALIZABLE"
  72. default.dialect = "n2n\impl\persistence\meta\mysql\MysqlDialect"
  73. [database : test]
  74. default.dsn_uri = "sqlite::memory:"
  75. default.dialect = "n2n\impl\persistence\meta\sqlite\SqliteDialect"
  76. default.user = ""
  77. default.password = ""
  78. [orm]
  79. ; entities[] = "example\bo\Example"
  80. [locales]
  81. default = "en"
  82. admin = "de_CH"