Files
stacks/obsidian/local.ini.example
T

34 lines
1.0 KiB
Plaintext
Raw Normal View History

# CouchDB settings required by the Obsidian LiveSync plugin.
# Mounted into /opt/couchdb/etc/local.d/ (files here override the image's
# default.ini and are picked up on container start, no admin-UI setup needed).
#
# Copy this to local.ini before first start:
# cp local.ini.example local.ini
# local.ini is gitignored: CouchDB rewrites it at runtime (hashed admin
# password, generated node uuid), so it can't be a tracked static file.
#
# Mounted read-write on purpose: the entrypoint chowns everything under
# /opt/couchdb to the couchdb user on start and aborts if that fails, so a
# :ro bind mount here breaks the container. It'll take ownership of this
# file on the host after first start; that's expected.
[couchdb]
single_node = true
max_document_size = 50000000
[chttpd]
require_valid_user = true
enable_cors = true
max_http_request_size = 4294967296
[chttpd_auth]
require_valid_user = true
[httpd]
WWW-Authenticate = Basic realm="couchdb"
enable_cors = true
[cors]
credentials = true
origins = app://obsidian.md,capacitor://localhost,http://localhost