docker-compose
services:
database:
image: postgres:13.4-alpine
environment:
- POSTGRES_USER=hedgedoc
- POSTGRES_PASSWORD=password
- POSTGRES_DB=hedgedoc
volumes:
- database:/var/lib/postgresql/data
restart: always
app:
# Make sure to use the latest release from https://hedgedoc.org/latest-release
image: quay.io/hedgedoc/hedgedoc:1.9.9
environment:
- CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc
- CMD_DOMAIN=hedgedoc.example.com
- CMD_ALLOW_ORIGIN=['hedgedoc.example.com', 'localhost']
- CMD_PROTOCOL_USESSL=true
- CMD_SESSION_SECRET=foobar99
- CMD_EMAIL=true
- CMD_ALLOW_EMAIL_REGISTER=false
volumes:
- uploads:/hedgedoc/public/uploads
ports:
- "3000:3000"
restart: always
depends_on:
- database
volumes:
database:
uploads:
hedgedoc.caddy
http://hedgedoc.example.com {
reverse_proxy localhost:3000 {
header_up X-Forwarded-Proto {scheme}
}
}
Related issues (that didn’t help):
I’m afraid the issue is that I only apply SSL between the user and cloudflare (flexible ssl). However, there is no SSL between cloudflare and the user.