animeic hai 1 ano
pai
achega
fecffaa671
Modificáronse 2 ficheiros con 24 adicións e 18 borrados
  1. 18 14
      conf/app.conf
  2. 6 4
      docker-compose.yml

+ 18 - 14
conf/app.conf

@@ -1,20 +1,24 @@
 appname = casdoor
 httpport = 8000
 runmode = dev
-SessionOn = true
 copyrequestbody = true
 driverName = mysql
 dataSourceName = casdoor:infish_2023_xx@tcp(casdoor-mysql:3306)/
-# dbName = casdoor
-# tableNamePrefix =
-# showSql = false
-# redisEndpoint =
-# defaultStorageProvider =
-# isCloudIntranet = false
-# authState = "casdoor"
-# socks5Proxy = "127.0.0.1:10808"
-# verificationCodeTimeout = 10
-# initScore = 2000
-# logPostOnly = true
-# origin = "https://door.casdoor.com"
-# staticBaseUrl = "https://cdn.casbin.org"
+dbName = casdoor
+tableNamePrefix =
+showSql = false
+redisEndpoint =
+defaultStorageProvider = 
+isCloudIntranet = false
+authState = "casdoor"
+socks5Proxy = "127.0.0.1:10808"
+verificationCodeTimeout = 10
+initScore = 2000
+logPostOnly = true
+origin =
+staticBaseUrl = "https://cdn.casbin.org"
+isDemoMode = false
+batchSize = 100
+ldapServerPort = 389
+languages = en,zh,es,fr,de,id,ja,ko,ru,vi
+quota = {"organization": -1, "user": -1, "application": -1, "provider": -1}

+ 6 - 4
docker-compose.yml

@@ -18,11 +18,13 @@ services:
       - casdoor
 
   casdoor:
-    image: casbin/casdoor:latest
+    image: casbin/casdoor:v1.297.0
     restart: always
-    environment:
-      - driverName=mysql
-      - dataSourceName=casdoor:infish_2023_xx@tcp(casdoor-mysql:3306)/
+    # environment:
+    #   - driverName=mysql
+    #   - dataSourceName=casdoor:infish_2023_xx@tcp(casdoor-mysql:3306)/
+    volumes:
+      - ./conf:/conf
     ports:
       - 8000:8000
     depends_on: