mirror of
https://github.com/dominikhoebert/docker-projects.git
synced 2025-10-10 16:46:17 +00:00
added proxy network
updated services in readme updated homepage
This commit is contained in:
@@ -12,8 +12,15 @@ services:
|
||||
- COUCHDB_USER=user
|
||||
- COUCHDB_PASSWORD=testitest
|
||||
volumes:
|
||||
- /mnt/cache/appdata/obsidian-livesync/data:/opt/couchdb/data
|
||||
- /mnt/cache/appdata/obsidian-livesync/local.ini:/opt/couchdb/etc/local.ini
|
||||
- ./data:/opt/couchdb/data
|
||||
- ./config/local.ini:/opt/couchdb/etc/local.ini
|
||||
# Ports not needed when already passed to Traefik
|
||||
ports:
|
||||
- 5984:5984
|
||||
- 5984:5984
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
|
22
obsidian-livesync/config/local.ini
Normal file
22
obsidian-livesync/config/local.ini
Normal file
@@ -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 = /e=_/_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
|
Reference in New Issue
Block a user