feat: 优化 Obsidian LiveSync 安装包

This commit is contained in:
wanghe-fit2cloud
2024-02-26 12:01:59 +08:00
parent 2edcfb1804
commit 0d20ba8c76
6 changed files with 49 additions and 152 deletions
@@ -0,0 +1,22 @@
[couchdb]
single_node=true
max_document_size = 50000000
[chttpd]
require_valid_user = true
max_http_request_size = 4294967296
[chttpd_auth]
require_valid_user = true
authentication_redirect = /_utils/session.html
[httpd]
WWW-Authenticate = Basic realm="couchdb"
enable_cors = true
[cors]
origins = app://obsidian.md,capacitor://localhost,http://localhost
credentials = true
headers = accept, authorization, content-type, origin, referer
methods = GET, PUT, POST, HEAD, DELETE
max_age = 3600
+25
View File
@@ -0,0 +1,25 @@
additionalProperties:
formFields:
- default: admin
envKey: OBSIDIAN_LIVESYNC_USER
labelEn: Username
labelZh: 用户名
required: true
rule: paramCommon
type: text
- default: obsidian
envKey: OBSIDIAN_LIVESYNC_USER_PASSWORD
labelEn: Password
labelZh: 密码
random: true
required: true
rule: paramComplexity
type: password
- default: 5984
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
@@ -0,0 +1,21 @@
version: "2.1"
services:
couchdb:
image: couchdb:3.3.3
container_name: ${CONTAINER_NAME}
environment:
- COUCHDB_USER=${OBSIDIAN_LIVESYNC_USER}
- COUCHDB_PASSWORD=${OBSIDIAN_LIVESYNC_USER_PASSWORD}
volumes:
- ./data:/opt/couchdb/data
- ./conf/local.ini:/opt/couchdb/etc/local.ini
ports:
- ${PANEL_APP_PORT_HTTP}:5984
restart: unless-stopped
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true