mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-24 11:43:51 +08:00
优化 casdoor 配置说明
Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
parent
400fa0124a
commit
46383cd25a
@ -59,7 +59,7 @@ additionalProperties:
|
|||||||
type: select
|
type: select
|
||||||
values:
|
values:
|
||||||
- label: PostgreSQL
|
- label: PostgreSQL
|
||||||
value: postgresql
|
value: postgres
|
||||||
- label: MySQL (MariaDB, Percona)
|
- label: MySQL (MariaDB, Percona)
|
||||||
value: mysql
|
value: mysql
|
||||||
- default: "127.0.0.1"
|
- default: "127.0.0.1"
|
||||||
|
@ -20,6 +20,10 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
target: STANDARD
|
target: STANDARD
|
||||||
entrypoint: /bin/sh -c './server --createDatabase=true'
|
entrypoint: /bin/sh -c './server --createDatabase=true'
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- /etc/1panel/envs/casdoor/casdoor.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
volumes:
|
volumes:
|
||||||
- ${CASDOOR_ROOT_PATH}/data/files:/home/user/casdoor/files
|
- ${CASDOOR_ROOT_PATH}/data/files:/home/user/casdoor/files
|
||||||
environment:
|
environment:
|
||||||
|
@ -11,11 +11,11 @@ if [ -f .env ]; 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" == "postgresql" ]; 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 [ -z "$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
|
||||||
|
@ -62,6 +62,8 @@ Casdoor 支持将用户头像等文件存储在本地文件系统中。默认情
|
|||||||
|
|
||||||
如果您的网络环境受到地区网络限制,您可以通过配置 `Socks5 代理` 来解决这个问题。
|
如果您的网络环境受到地区网络限制,您可以通过配置 `Socks5 代理` 来解决这个问题。
|
||||||
|
|
||||||
|
格式:host:port
|
||||||
|
|
||||||
socks5Proxy 是 SOCKS 代理服务器 IP 地址。
|
socks5Proxy 是 SOCKS 代理服务器 IP 地址。
|
||||||
设置代理端口,因为我们有与Google相关的服务,或者使用Google、GitHub、Facebook、LinkedIn或Steam作为OAuth提供商,这在某些地区可能会受到网络限制。
|
设置代理端口,因为我们有与Google相关的服务,或者使用Google、GitHub、Facebook、LinkedIn或Steam作为OAuth提供商,这在某些地区可能会受到网络限制。
|
||||||
|
|
||||||
|
@ -1,31 +1,31 @@
|
|||||||
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="root:123456@tcp(localhost:3306)/"
|
||||||
dbName = casdoor
|
dbName="casdoor"
|
||||||
tableNamePrefix =
|
tableNamePrefix=
|
||||||
showSql = false
|
showSql=false
|
||||||
redisEndpoint =
|
redisEndpoint=
|
||||||
defaultStorageProvider =
|
defaultStorageProvider=
|
||||||
isCloudIntranet = false
|
isCloudIntranet=false
|
||||||
authState = "casdoor"
|
authState="casdoor"
|
||||||
socks5Proxy = "127.0.0.1:10808"
|
socks5Proxy="127.0.0.1:10808"
|
||||||
verificationCodeTimeout = 10
|
verificationCodeTimeout=10
|
||||||
initScore = 0
|
initScore=0
|
||||||
logPostOnly = true
|
logPostOnly=true
|
||||||
isUsernameLowered = false
|
isUsernameLowered=false
|
||||||
origin =
|
origin=
|
||||||
originFrontend =
|
originFrontend=
|
||||||
staticBaseUrl = "https://cdn.casbin.org"
|
staticBaseUrl="https://cdn.casbin.org"
|
||||||
isDemoMode = false
|
isDemoMode=false
|
||||||
batchSize = 100
|
batchSize=100
|
||||||
enableGzip = true
|
enableGzip=true
|
||||||
ldapServerPort = 389
|
ldapServerPort=389
|
||||||
radiusServerPort = 1812
|
radiusServerPort=1812
|
||||||
radiusSecret = "secret"
|
radiusSecret="secret"
|
||||||
quota = {"organization": -1, "user": -1, "application": -1, "provider": -1}
|
quota={"organization": -1, "user": -1, "application": -1, "provider": -1}
|
||||||
logConfig = {"filename": "logs/casdoor.log", "maxdays":99999, "perm":"0770"}
|
logConfig={"filename": "logs/casdoor.log", "maxdays":99999, "perm":"0770"}
|
||||||
initDataFile = "./init_data.json"
|
initDataFil="./init_data.json"
|
||||||
frontendBaseDir = "../casdoor"
|
frontendBaseDi="../casdoor"
|
||||||
|
Loading…
Reference in New Issue
Block a user