From a0ac25e42e134716ca8b1f20b17d15e962d2dd8d Mon Sep 17 00:00:00 2001 From: stneng Date: Mon, 3 Apr 2017 22:31:12 +0800 Subject: [PATCH] Update gen-uoj-config.php --- docker/gen-uoj-config.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docker/gen-uoj-config.php b/docker/gen-uoj-config.php index 6b16547..a3df762 100644 --- a/docker/gen-uoj-config.php +++ b/docker/gen-uoj-config.php @@ -28,13 +28,16 @@ $config = [ 'host' => '127.0.0.1' ], 'web' => [ + 'domain' => null, 'main' => [ 'protocol' => 'http', - 'host' => 'local_uoj.ac' + 'host' => '23333', + 'port' => 80 ], 'blog' => [ 'protocol' => 'http', - 'host' => 'blog.local_uoj.ac' + 'host' => '23333', + 'port' => 80 ] ], 'security' => [ @@ -62,6 +65,11 @@ $config = [ 'username' => 'our-root', 'password' => rand_str(32) ] + ], + 'switch' => [ + 'ICP-license' => false, + 'web-analytics' => false, + 'blog-use-subdomain' => false ] ]; @@ -88,6 +96,7 @@ translate('post-commit.sh', '/var/svn/problem/post-commit.sh', $translate_table) translate('uoj-passwd', '/var/svn/uoj/conf/passwd', $translate_table); translate('uoj-post-commit', '/var/svn/uoj/hooks/post-commit', $translate_table); -file_put_contents('uoj_config.php', "