RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
39.54k stars 10.13k forks source link

Snap, caddy : `error: cannot find app "initcaddy" in "rocketchat-server"` #30859

Open pierrecorsini opened 8 months ago

pierrecorsini commented 8 months ago

Scenario:

Expected:

No error. This is from https://docs.rocket.chat/deploy/deploy-rocket.chat/deploy-with-snaps#deploy-rocket.chat-with-snaps.

Actual:

sudo snap run rocketchat-server.initcaddy
error: cannot find app "initcaddy" in "rocketchat-server"
florisvangeel commented 7 months ago

assuming you have caddy in front of RC that runs on port 3000 adapt this kind of configuration In cas you run localhost replace [IP] with 127.0.0.1 or the (local) IP of your service. Caddyfile:

your.domain {
        reverse_proxy [IP]:3000
        header Access-Control-Allow-Methods "POST, GET, OPTIONS"
        header Access-Control-Allow-Headers "*"
}

The headers are for omni channel widgets on other domain websites.