plankanban / planka

The realtime kanban board for workgroups built with React and Redux.
https://planka.app
GNU Affero General Public License v3.0
8.06k stars 754 forks source link

Caddy as reverse proxy #174

Open ykktrcb7 opened 3 years ago

ykktrcb7 commented 3 years ago

Works fine with IP address, but with reverse proxy get infinite loading screen.

Similar to other Traefik issues mentioned here, but cannot get it to work with Caddy server as reverse proxy.

kabukimandelux commented 3 years ago

Cannot help directly as I'm using Nginx reverse proxy manager. Had to activate web socket and it worked, might help you

xsteadfastx commented 3 years ago

im using caddy here. and this here works for me

planka.foo.tld {
        reverse_proxy planka:1337
}

planka is just the container name in the same docker network. nothing else to do for me.

arvigeus commented 3 years ago

I didn't had any problems with it, check my repo - caddy, docker.compose.yml. The only unorthodox thing I am doing is to use a single database across multiple containers. Ignore the tls option in my Caddyfile, it's for my cloud provider.

REVENTOR-EU commented 2 years ago

Cannot help directly as I'm using Nginx reverse proxy manager. Had to activate web socket and it worked, might help you

how did you set up everything? activating websocket still gives me an endless loading circle. console still tells me websocket connection failed.

MatejLach commented 8 months ago

Old issue but in case it's useful, this works for me:

http://planka:port {
    reverse_proxy :3000 {
        header_up X-Real-IP {remote_host}
    }

    @websockets {
        header Connection *Upgrade*
        header Upgrade websocket
    }
    reverse_proxy @websockets localhost:3000
}