mondediefr / docker-flarum

:speech_balloon: :whale: Docker image of Flarum
https://hub.docker.com/r/mondedie/flarum
MIT License
507 stars 131 forks source link

Cloudflare Configuration? #104

Closed ahallum1986 closed 2 years ago

ahallum1986 commented 2 years ago

I have spent a bit of time trying a bunch of things but have been unable to get this image to work in anything other than cloudflare's flexible configuration. When I try to turn on the Full setting the website is replaced by a 521 error.

I placed my key.pem and cert.pem in the /mnt/docker/flarum/nginx folder with the following custom-vhost-flarum.conf: ssl on; listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate /etc/nginx/flarum/cert.pem; ssl_certificate_key /etc/nginx/flarum/key.pem;

But the website still reports a 521 error.

Any help would be appreciated.

ahallum1986 commented 2 years ago

I figured it out. I had to change the port in the docker-compose from 80 to 443