mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-24 17:55:10 +08:00
优化 casdoor
Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
parent
a2f952d0c0
commit
d880c9cc40
@ -15,11 +15,6 @@ services:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8000
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
target: STANDARD
|
||||
entrypoint: /bin/sh -c './server --createDatabase=true'
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- /etc/1panel/envs/casdoor/casdoor.env
|
||||
@ -31,5 +26,5 @@ services:
|
||||
- dbName=${DB_NAME}
|
||||
- redisEndpoint=${REDIS_HOSTNAME}:${REDIS_PORT}
|
||||
- verificationCodeTimeout=10
|
||||
- appname="casdoor"
|
||||
- authState="casdoor"
|
||||
- appname=casdoor
|
||||
- authState=casdoor
|
||||
|
@ -8,17 +8,17 @@ if [ -f .env ]; then
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
if [ "$DB_TYPE" == "mysql" ]; then
|
||||
echo "dataSourceName=\"$DB_USER:$DB_PASSWD@tcp($DB_HOSTNAME:$DB_PORT)/\"" >> .env
|
||||
echo "dataSourceName=$DB_USER:$DB_PASSWD@tcp($DB_HOSTNAME:$DB_PORT)/" >> .env
|
||||
fi
|
||||
|
||||
if [ "$DB_TYPE" == "postgres" ]; then
|
||||
echo "dataSourceName=\"user=$DB_USER password=$DB_PASSWD host=$DB_HOSTNAME port=$DB_PORT sslmode=disable dbname=$DB_NAME\"" >> .env
|
||||
echo "dataSourceName=user=$DB_USER password=$DB_PASSWD host=$DB_HOSTNAME port=$DB_PORT sslmode=disable dbname=$DB_NAME" >> .env
|
||||
fi
|
||||
|
||||
if [ -n "$REDIS_PASSWORD" ]; then
|
||||
echo "redisEndpoint=\"$REDIS_HOSTNAME:$REDIS_PORT,$REDIS_DBINDEX,$REDIS_PASSWORD\"" >> .env
|
||||
echo "redisEndpoint=$REDIS_HOSTNAME:$REDIS_PORT,$REDIS_DBINDEX,$REDIS_PASSWORD" >> .env
|
||||
else
|
||||
echo "redisEndpoint=\"$REDIS_HOSTNAME:$REDIS_PORT,$REDIS_DBINDEX\"" >> .env
|
||||
echo "redisEndpoint=$REDIS_HOSTNAME:$REDIS_PORT,$REDIS_DBINDEX" >> .env
|
||||
fi
|
||||
|
||||
echo "Check Finish."
|
||||
|
@ -1,10 +1,10 @@
|
||||
appname="casdoor"
|
||||
appname=casdoor
|
||||
httpport=8000
|
||||
runmode="prod"
|
||||
runmode=prod
|
||||
copyrequestbody=true
|
||||
driverName="mysql"
|
||||
dataSourceName="root:123456@tcp(localhost:3306)/"
|
||||
dbName="casdoor"
|
||||
driverName=mysql
|
||||
dataSourceName=
|
||||
dbName=casdoor
|
||||
tableNamePrefix=
|
||||
showSql=false
|
||||
redisEndpoint=
|
||||
|
Loading…
Reference in New Issue
Block a user