mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-28 16:26:19 +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
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:8000
|
- ${PANEL_APP_PORT_HTTP}:8000
|
||||||
build:
|
|
||||||
context: ./
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
target: STANDARD
|
|
||||||
entrypoint: /bin/sh -c './server --createDatabase=true'
|
|
||||||
env_file:
|
env_file:
|
||||||
- /etc/1panel/envs/global.env
|
- /etc/1panel/envs/global.env
|
||||||
- /etc/1panel/envs/casdoor/casdoor.env
|
- /etc/1panel/envs/casdoor/casdoor.env
|
||||||
@ -31,5 +26,5 @@ services:
|
|||||||
- dbName=${DB_NAME}
|
- dbName=${DB_NAME}
|
||||||
- redisEndpoint=${REDIS_HOSTNAME}:${REDIS_PORT}
|
- redisEndpoint=${REDIS_HOSTNAME}:${REDIS_PORT}
|
||||||
- verificationCodeTimeout=10
|
- verificationCodeTimeout=10
|
||||||
- appname="casdoor"
|
- appname=casdoor
|
||||||
- authState="casdoor"
|
- authState=casdoor
|
||||||
|
@ -8,17 +8,17 @@ if [ -f .env ]; then
|
|||||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
if [ "$DB_TYPE" == "mysql" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ "$DB_TYPE" == "postgres" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ -n "$REDIS_PASSWORD" ]; then
|
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
|
else
|
||||||
echo "redisEndpoint=\"$REDIS_HOSTNAME:$REDIS_PORT,$REDIS_DBINDEX\"" >> .env
|
echo "redisEndpoint=$REDIS_HOSTNAME:$REDIS_PORT,$REDIS_DBINDEX" >> .env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Check Finish."
|
echo "Check Finish."
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
appname="casdoor"
|
appname=casdoor
|
||||||
httpport=8000
|
httpport=8000
|
||||||
runmode="prod"
|
runmode=prod
|
||||||
copyrequestbody=true
|
copyrequestbody=true
|
||||||
driverName="mysql"
|
driverName=mysql
|
||||||
dataSourceName="root:123456@tcp(localhost:3306)/"
|
dataSourceName=
|
||||||
dbName="casdoor"
|
dbName=casdoor
|
||||||
tableNamePrefix=
|
tableNamePrefix=
|
||||||
showSql=false
|
showSql=false
|
||||||
redisEndpoint=
|
redisEndpoint=
|
||||||
|
Loading…
Reference in New Issue
Block a user