mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 14:18:40 +00:00
2156cdffef
We add a new way to access blog page. Now there are 3. The switch now uses number to choose the way. 1 is for subdomain and 3 is for subfolder. 2 is for separated blog domain with its subfolder. For example, mike's link is blog.xxx.xxx/mike. Blog list page link on navbar will change by domain mode.
58 lines
1.1 KiB
PHP
58 lines
1.1 KiB
PHP
<?php
|
|
return [
|
|
'profile' => [
|
|
'oj-name' => 'Universal Online Judge',
|
|
'oj-name-short' => 'UOJ',
|
|
'administrator' => 'root',
|
|
'admin-email' => 'admin@local_uoj.ac',
|
|
'QQ-group' => '',
|
|
'ICP-license' => ''
|
|
],
|
|
'database' => [
|
|
'database' => 'app_uoj233',
|
|
'username' => 'root',
|
|
'password' => '_database_password_',
|
|
'host' => '127.0.0.1'
|
|
],
|
|
'web' => [
|
|
'domain' => null,
|
|
'main' => [
|
|
'protocol' => 'http',
|
|
'host' => '_httpHost_',
|
|
'port' => 80
|
|
],
|
|
'blog' => [
|
|
'protocol' => 'http',
|
|
'host' => '_httpHost_',
|
|
'port' => 80
|
|
]
|
|
],
|
|
'security' => [
|
|
'user' => [
|
|
'client_salt' => 'salt0'
|
|
],
|
|
'cookie' => [
|
|
'checksum_salt' => ['salt1', 'salt2', 'salt3']
|
|
],
|
|
],
|
|
'mail' => [
|
|
'noreply' => [
|
|
'username' => 'noreply@local_uoj.ac',
|
|
'password' => '_mail_noreply_password_',
|
|
'host' => 'smtp.local_uoj.ac',
|
|
'secure' => 'tls',
|
|
'port' => 587
|
|
]
|
|
],
|
|
'judger' => [
|
|
'socket' => [
|
|
'port' => '233',
|
|
'password' => '_judger_socket_password_'
|
|
]
|
|
],
|
|
'switch' => [
|
|
'web-analytics' => false,
|
|
'blog-domain-mode' => 3
|
|
]
|
|
];
|