fix(Delopy Script): change settings

This commit is contained in:
cubic
2022-01-10 16:00:42 +08:00
parent e3aed55c7c
commit f96e9408cf
4 changed files with 21 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
---
host: <host>
host: localhost
allowRegister: true
email:
name: CodeFever Community

View File

@@ -9,16 +9,16 @@ releaseNumber: '00000000000001'
# mysql configuration
mysql:
host: <mysql_host>
port: <mysql_port>
username: <mysql_user>
password: <mysql_pass>
host: localhost
port: 3306
username: root
password: 123456
db: codefever_community
# session setting
session:
domain: <session_host>
name: <session_name>
domain: localhost
name: codefever_community
key: <session_key>
# path

View File

@@ -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 </data/www/codefever-community/env.yaml: mysql/*> to finish mysql settings.'
echo '2. You shuold edit file </data/www/codefever-community/env.yaml: session/*> to finish cookie settings.'
echo '3. You shuold edit file </data/www/codefever-community/env.yaml: gateway/token> to finish git gateway security settings.'

View File

@@ -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