New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Caddy as reverse proxy and https #1632

matthinc opened this Issue Aug 23, 2018 · 5 comments


None yet
3 participants

matthinc commented Aug 23, 2018

I am running Firefly III version latest


I use caddy as a reverse proxy for firefly_iii. The application itself is running in docker.
The docker-compose looks like that (already tried a few things):

      - APP_FORCE_ROOT=https://ffiii.<my domain>
      - APP_URL=https://ffiii.<my domain>
      - APP_FORCE_SSL=true
      - "8025:80"

The Caddyfile looks like that:

ffiii.<my domain> {
        proxy / localhost:8025 {

I can open the page in Chrome, the URL says https://... but all css, js... files are delivered via http.
Therefore the page looks very ugly.

I had a look in the html code and it inserts the line <base href="http://ffiii.<my domain>/"> not https.

I'm not sure whether this is a configuration problem in caddy or firefly.

Thank you in advance!


This comment has been minimized.


JC5 commented Aug 24, 2018

APP_FORCE_SSL and APP_FORCE_ROOT are no longer part of Firefly III code. So those won't work I'm afraid. APP_URL is only used on the command line and in specific tasks.

But other than that, I have no idea I'm afraid. Docker + Caddy is a complete unknown for me.


This comment has been minimized.

matthinc commented Aug 24, 2018

Hmm - nevertheless thank you for the fast response. I will have to do some research myself. There are some other people on reddit with the same problem. I will respond here, if I find a solution.


This comment has been minimized.

tbrasser commented Aug 24, 2018

I have firefly and caddy running without problems, have you set trusted proxies to ** . ?
This is my caddy file entry for firefly:

firefly.domain.tld {
timeouts none
proxy / {

and the environment variables:
APP_URL = firefly.domain.tld


This comment has been minimized.

matthinc commented Aug 24, 2018

Nice, thank you very much @tbrasser!

@matthinc matthinc closed this Aug 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment