docusealco / docuseal

Open source DocuSign alternative. Create, fill, and sign digital documents ✍️
https://www.docuseal.co
GNU Affero General Public License v3.0
5.61k stars 372 forks source link

Question: How to set up docuseal with external revers proxy? #222

Closed AlexNikMak closed 3 months ago

AlexNikMak commented 4 months ago

Hi everyone!

How do I set up docuseal?

Currently, I am using Nginx proxy manager in separate container as my main revers proxy. In this case, I can just remove this part from docker-compose.yml file?

`caddy: image: caddy:latest command: caddy reverse-proxy --from $HOST --to app:3000 ports:

`services: app: depends_on: postgres: condition: service_healthy image: docuseal/docuseal:latest ports:

Sorry if this question is dumb, I am not very familiar with this.

Thanks in advance.

gabviv73 commented 4 months ago

Hy, my 2 cents: this is the simplest docker-compose.yml to use with an external reverse proxy. Define a proxy host with name "site.example.com" and forward port 8911 to the ip address of the docker host running the container:

version: '3'

services:
  app:
    image: docuseal/docuseal:latest
    ports:
      - 8911:3000
    volumes:
      - ./data:/data
    environment:
      - FORCE_SSL=site.example.com
omohokcoj commented 3 months ago

Docuseal can be configured on any reverse proxy - just need to make sure that X-Forwarded headers are passed: https://www.docuseal.co/docs/configuring-docuseal-behind-an-existing-reverse-proxy-nginx