hello, I installed couchedb on docker, and I would like to do port forwarding and also display the home page on web here are my nginx configurations
# Configuration spécifique pour CouchDB sur le port 6984
upstream couchdb {
server 192.81.216.136:5984;
}
server {
listen 6984 ssl;
server_name ikar.dev;
ssl_certificate /etc/letsencrypt/live/ikar.dev/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ikar.dev/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location /couchdb/ {
proxy_pass http://172.17.0.2:5984/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Redirige vers la page de login de CouchDB si nécessaire
}
}
192.81.216.136 is my server IP
and 172.17.0.2 is the docker ip
and and I have this in the home page of my web
// 20241111200825
// https://ikar.dev:6984/couchdb/
{
"couchdb": "Welcome",
"version": "2.3.1",
"git_sha": "c298091a4",
"uuid": "33a2197c5d92cbf150ab5e9cfc979da6",
"features": [
"pluggable-storage-engines",
"scheduler"
],
"vendor": {
"name": "The Apache Software Foundation"
}
}
help me please