filebrowser 初始配置
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
database.db
|
||||||
|
database.db.bak
|
||||||
|
tmp/
|
||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
server:
|
||||||
|
port: 80
|
||||||
|
database: "/home/filebrowser/data/database.db"
|
||||||
|
cacheDir: "/home/filebrowser/data/tmp"
|
||||||
|
sources:
|
||||||
|
- path: /srv
|
||||||
|
config:
|
||||||
|
defaultEnabled: true
|
||||||
|
auth:
|
||||||
|
methods:
|
||||||
|
oidc:
|
||||||
|
enabled: true
|
||||||
|
clientId: "95a150cf-e376-4a2a-aec8-5bce1b518cb5"
|
||||||
|
clientSecret: "CEKqBc8cT2bkH814rqbjJBJgtXbmiwCE"
|
||||||
|
issuerUrl: "https://sso.140103.xyz"
|
||||||
|
scopes: "email openid profile"
|
||||||
|
userIdentifier: preferred_username
|
||||||
|
disableVerifyTLS: false
|
||||||
|
createUser: true # 首次登录自动创建用户
|
||||||
|
password:
|
||||||
|
enabled: true # 建议保留,万一 OIDC 出问题还能登
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
/* 定位到那个特定的 A 标签 */
|
||||||
|
a.button.direct-login[href*="oidc"] {
|
||||||
|
font-size: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 注入“SSO 登陆”文字 */
|
||||||
|
a.button.direct-login[href*="oidc"]::before {
|
||||||
|
content: "SSO 登陆";
|
||||||
|
font-size: 1rem !important; /* 恢复原本的字体大小 */
|
||||||
|
display: block;
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user