-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Instructions for self-hosting CouchDb #11
Comments
Calling @RdeLange has he has the most experience with getting CouchDB up and running. I haven't really used it since v2 days. |
FWIW this version: '3.1'
services:
nomie6:
image: ghcr.io/qcasey/nomie6-oss:master
restart: unless-stopped
ports:
- 5000:80
couchdb:
image: couchdb:3
restart: unless-stopped
ports:
- 5984:5984
environment:
- COUCHDB_USER=<USERNAME>
- COUCHDB_PASSWORD=<PASSWORD>
volumes:
- db:/opt/couchdb/data
- ./couchdb.ini:/opt/couchdb/etc/local.d/docker.ini
volumes:
db: with a [HTTPD]
enable_cors = true
[chttpd]
enable_cors = true
[cors]
origins = *
credentials = true
methods = GET, PUT, POST, HEAD, DELETE
headers = accept, authorization, content-type, origin, referer, x-csrf-token SSL on both services. |
@qcasey What are you doing to enable SSL on both services? |
Validated the docker-compose.yml which is using the same couchDB config settings as I am using for some years now. I had Nomie5 running as a container. I see comments that you need ssl enabled on both servers. intrestingly enough I have ssl enabled for the Nomie5 container via the native Synology toolset (as I am hosting on my Synology). I have not enabled ssl for the couchDB server. Never gave it much attention as it was working, but will do some additional validation today. |
Caddy reverse proxy. I'm not certain that (or my docker config) is the right answer for self hosting docs but I wanted to offer a functional starting point. nomie.example.com {
reverse_proxy 192.168.1.44:5000
}
nomie-db.example.com {
reverse_proxy 192.168.1.44:5984
} |
@qcasey nothing wrong with that at all, a reverse proxy seems like a sensible approach. letsencrypt cert? |
Yep, caddy will use letsencrypt with zerossl as a fallback |
If using Synology, you should be able to reverse proxy and use the cert it provides. I just found this and will try setting it up shortly. |
Any assistance with this would be appreciated. I'm seeing repeating errors of this nature on the couchdb container log:
|
I'd like to thank @qcasey for the docker image. Is there any chance we can get an officially hosted version here? |
@holocronology did you get it fully up and working? Could you share a step by step somewhere? |
Do you have docker, docker compose, and preferably Portainer installed and set up? |
yeah, all up and ready |
This is the stack I used in Portainer. You'll need to fill in your own values where noted. This is running on a Synology NAS. I used Cloudflare Zero Trust tunnels to HTTPS remote access via custom urls.
It's basically the same as what was posted above. |
I will give it a try, thanks! |
Did you generate the couch.ini file? #11 (comment) |
well I think I messed this up little? its not failing immediately anymore now, but takes a little trying to connect :D Ill see if any logs are useful ... |
What about ARM CPU? |
Any way to get rid every secnd error:
? |
This message helps me apache/couchdb#1354 (comment) |
The proposed docker composes works great unless I setup DNS for my name and couch db. If nomie has an HTTPS and I am trying to use couchdb by IP - I get an error : https://developer.mozilla.org/ru/docs/Web/Security/Mixed_content How to solve it? |
@alexkutsan, thanks for the documentation of the solution. It will definately help some other users setup their CouchDB database in conjunction with Nomie. Once time allows, further exploring and documenting the different ways to setup CouchDB is high on my prio list. Regards, |
Well, latest couchDB update is crashing. Unlcear what to do.
|
how did you fix the error? |
I'm interested to i want to make a helm chart for nomie |
I have some documentation available: I hope this helps.. |
Access denied error. I'm away from the system right now, but I can't even use the admin login to access the DB. I'll check the CORS settings later. Again, this is my first foray into couchdb |
Forgot I had remote access...
|
Hi, it can be very tricky to host your own couchdb instance. I have written a tutorial on how I made it work. This might be of help: |
i'll check it out. also, getting this error now that i've enabled cors
still can't login though. |
I looked at the docs. Pretty much all the same steps I took |
Are you running on HTTPS and another on HTTP? that might cause an issue since iOS doesn't allow secure pages to call out to insecure pages. |
solved. i have fat fingers. :) Now to figure out why this thing refreshes all the time when i'm in the middle of something, but that's for another thread :) |
Solved. I kept fat-fingering something
…On Thu, Feb 15, 2024, 17:54 Brandon ***@***.***> wrote:
Are you running on HTTPS and another on HTTP? that might cause an issue
since iOS doesn't allow secure pages to call out to insecure pages.
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE6CFAWHD4G57XG365GRKDYT2G3HAVCNFSM6AAAAAATUDPNMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGQ3TCMRYHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@RdeLange is there any way to enable CORS by default for only the dailynomie domain ? I have to always login and add this manually on CouchDB when I restart my server |
Hi,
I have been struggling with this also. Can you advice where you need to adjust the settings? In CouchDB? After you reset (or restart?) your CouchDB server?
Sent from Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: krillin666 ***@***.***>
Sent: Sunday, May 5, 2024 7:05 PM
To: open-nomie/nomie6-oss ***@***.***>
Cc: Ronald de Lange ***@***.***>; Mention ***@***.***>
Subject: Re: [open-nomie/nomie6-oss] Instructions for self-hosting CouchDb (Issue #11)
cors
@RdeLange<https://github.com/RdeLange> is there any way to enable CORS by default for only the dailynomie domain ? I have to always login and add this manually on CouchDB when I restart my server
—
Reply to this email directly, view it on GitHub<#11 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAJIWX253NWBD6EWBNYOY2LZAZREFAVCNFSM6AAAAAATUDPNMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUHA3TSNRUG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
It would be useful to provide instructions and a working docker-compose configuration for self-hosting Nomie and CouchDb together and getting them talking to each other.
The text was updated successfully, but these errors were encountered: