Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Unostvisal edited this page Oct 5, 2016 · 1 revision

In : /var/www/uoj/app/.config.php

<?php
return [
 'database' => [ // 数据库相关
 'database' => 'app_uoj233', // 数据库名称
 'username' => 'root', // 用户名
 'password' => '', // 密码
 'host' => '127.0.0.1' // 数据库主机名
 ],
 'web' => [ // 网址相关
 'main' => [ // 网站主体
 'protocol' => 'http', // 传输协议
 'host' => 'local_uoj.ac', // 主机名
 'port' => 80 // 端口
 ],
 'blog' => [ // UOJ 博客 (用户名放前面之后成为完整的域名)
 'protocol' => 'http', // 传输协议
 'host' => 'blog.local_uoj.ac', // 主机名
 'port' => 80 // 端口
 ]
 ],
 'security' => [ // 安全相关(不要动)
 'user' => [
 'client_salt' => 'salt0'
 ],
 'cookie' => [
 'checksum_salt' => ['salt1', 'salt2', 'salt3']
 ],
 ],
 'mail' => [ // 邮件相关(SMTP 协议发送)
 'noreply' => [ // noreply 邮箱
 'username' => 'noreply@none',
 'password' => 'noreply',
 'host' => 'smtp.sina.com',
 'port' => 25
 ]
 ],
 'judger' => [ // 测评相关(不要动)
 'socket' => [ // 与测评机的 socket 服务器通讯的设置
 'port' => '233', // 端口
 'password' => 'password233' // 认证密码(证明自己 UOJ 服务器)
 ]
 ],
 'svn' => [ // svn 相关(不要动)
 'our-root' => [ // 每个题目的 svn 仓库自带的仓库管理员
 'username' => 'our-root', // 管理员用户名
 'password' => 'our-root' // 密码
 ]
 ],
 'switch' => [ // 一些开关
 'ICP-license' => false, // ICP 备案信息的显示
 'web-analytics' => false // 网站流量统计(记 uoj.ac 名下......想统计自己的得改代码)
 ]
];

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /