diff --git a/config.template.yaml b/config.template.yaml index 82a1977..62a2cbe 100755 --- a/config.template.yaml +++ b/config.template.yaml @@ -1,5 +1,5 @@ --- -host: +host: localhost allowRegister: true email: name: CodeFever Community diff --git a/env.template.yaml b/env.template.yaml index a2be648..4c598bb 100755 --- a/env.template.yaml +++ b/env.template.yaml @@ -9,16 +9,16 @@ releaseNumber: '00000000000001' # mysql configuration mysql: - host: - port: - username: - password: + host: localhost + port: 3306 + username: root + password: 123456 db: codefever_community # session setting session: - domain: - name: + domain: localhost + name: codefever_community key: # path diff --git a/misc/install.sh b/misc/install.sh index f05a4a1..bde564f 100644 --- a/misc/install.sh +++ b/misc/install.sh @@ -31,6 +31,11 @@ cp codefever-service-template /etc/init.d/codefever echo 'services installed!' +cp ../config.template.yaml ./config.yaml +cp ../env.template.yaml ./env.yaml + +echo 'env files generated!' + service codefever start service php-fpm start service nginx start @@ -38,3 +43,9 @@ service nginx start echo 'services started!' echo 'Done!' + +echo '=== IMPORTANT NOTICE ===' +echo '1. You shuold edit file to finish mysql settings.' +echo '2. You shuold edit file to finish cookie settings.' +echo '3. You shuold edit file to finish git gateway security settings.' + diff --git a/misc/php.ini-template b/misc/php.ini-template index dc198f4..9ddf516 100644 --- a/misc/php.ini-template +++ b/misc/php.ini-template @@ -1945,3 +1945,6 @@ ldap.max_links = -1 ; List of headers files to preload, wildcard patterns allowed. ;ffi.preload= + +; Extensions for codefever-community +extension=yaml \ No newline at end of file