.default-config.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. return [
  3. 'profile' => [
  4. 'oj-name' => 'Universal Online Judge',
  5. 'oj-name-short' => 'UOJ',
  6. 'administrator' => 'root',
  7. 'admin-email' => 'admin@local_uoj.ac',
  8. 'QQ-group' => '',
  9. 'ICP-license' => ''
  10. ],
  11. 'database' => [
  12. 'database' => 'app_uoj233',
  13. 'username' => 'root',
  14. 'password' => 'root',
  15. 'host' => 'uoj-db'
  16. ],
  17. 'web' => [
  18. 'domain' => null,
  19. 'main' => [
  20. 'protocol' => 'http',
  21. 'host' => '_httpHost_',
  22. 'port' => 80
  23. ],
  24. 'blog' => [
  25. 'protocol' => 'http',
  26. 'host' => '_httpHost_',
  27. 'port' => 80
  28. ]
  29. ],
  30. 'security' => [
  31. 'user' => [
  32. 'client_salt' => 'salt0'
  33. ],
  34. 'cookie' => [
  35. 'checksum_salt' => ['salt1', 'salt2', 'salt3']
  36. ],
  37. ],
  38. 'mail' => [
  39. 'noreply' => [
  40. 'username' => 'noreply@local_uoj.ac',
  41. 'password' => '_mail_noreply_password_',
  42. 'host' => 'smtp.local_uoj.ac',
  43. 'secure' => 'tls',
  44. 'port' => 587
  45. ]
  46. ],
  47. 'judger' => [
  48. 'socket' => [
  49. 'port' => '233',
  50. 'password' => '_judger_socket_password_'
  51. ]
  52. ],
  53. 'switch' => [
  54. // 请在 page-header.php 中修改统计代码后再启用
  55. 'web-analytics' => false,
  56. 'blog-domain-mode' => 3
  57. ],
  58. 'tools' => [
  59. // 请仅在https下启用以下功能.
  60. // 非https下, chrome无法进行复制.
  61. 'map-copy-enabled' => false,
  62. ]
  63. ];