Spaces:
Running
Running
Upload conf.ini
Browse files
conf.ini
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[System]
|
2 |
+
; 运行模式
|
3 |
+
Mode = master
|
4 |
+
; 监听端口
|
5 |
+
Listen = 0.0.0.0:7860
|
6 |
+
; 是否开启 Debug
|
7 |
+
Debug = false
|
8 |
+
; Session 密钥, 一般在首次启动时自动生成
|
9 |
+
SessionSecret = 23333
|
10 |
+
; Hash 加盐, 一般在首次启动时自动生成
|
11 |
+
HashIDSalt = something really hard to guss
|
12 |
+
; 呈递客户端 IP 时使用的 Header
|
13 |
+
ProxyHeader = X-Forwarded-For
|
14 |
+
|
15 |
+
; SSL 相关
|
16 |
+
[SSL]
|
17 |
+
; SSL 监听端口
|
18 |
+
Listen = :443
|
19 |
+
; 证书路径
|
20 |
+
CertPath = C:\Users\i\Documents\fullchain.pem
|
21 |
+
; 私钥路径
|
22 |
+
KeyPath = C:\Users\i\Documents\privkey.pem
|
23 |
+
|
24 |
+
; 启用 Unix Socket 监听
|
25 |
+
[UnixSocket]
|
26 |
+
Listen = /run/cloudreve/cloudreve.sock
|
27 |
+
; 设置产生的 socket 文件的权限
|
28 |
+
Perm = 0666
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
; 从机模式下的配置
|
33 |
+
[Slave]
|
34 |
+
; 通信密钥
|
35 |
+
Secret = 1234567891234567123456789123456712345678912345671234567891234567
|
36 |
+
; 回调请求超时时间 (s)
|
37 |
+
CallbackTimeout = 20
|
38 |
+
; 签名有效期
|
39 |
+
SignatureTTL = 60
|
40 |
+
|
41 |
+
; 跨域配置
|
42 |
+
[CORS]
|
43 |
+
AllowOrigins = *
|
44 |
+
AllowMethods = OPTIONS,GET,POST
|
45 |
+
AllowHeaders = *
|
46 |
+
AllowCredentials = false
|
47 |
+
SameSite = Default
|
48 |
+
Secure = lse
|
49 |
+
|
50 |
+
; Redis 相关
|
51 |
+
[Redis]
|
52 |
+
Server = 127.0.0.1:6379
|
53 |
+
Password =
|
54 |
+
DB = 0
|
55 |
+
|
56 |
+
; 从机配置覆盖
|
57 |
+
[OptionOverwrite]
|
58 |
+
; 可直接使用 `设置名称 = 值` 的格式覆盖
|
59 |
+
max_worker_num = 50
|