RocketChat / RocketChat/Rocket.Chat
Auto SSL - Caddy fails to start
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Trying to set up SSL trough caddy and it the service just stops after a second of running. It works fine with tls self_signed
Server Setup Information:
- Version of Rocket.Chat Server: 0.63.1
- Operating System: Ubuntu
- Deployment Method(snap/docker/tar/etc): Snap
- Number of Running Instances: 1
Steps to Reproduce:
- Edit caddy file according to documentation
- Restart the service
- Caddy stops
Expected behavior:
Caddy to keep running
Relevant logs:
Apr 10 07:19:33 ns544081 systemd[1]: Started Service for snap application rocketchat-server.rocketchat-caddy.
Apr 10 07:19:33 ns544081 rocketchat-server.rocketchat-caddy[17692]: 2018/04/10 07:19:33 /var/snap/rocketchat-server/1248/Caddyfile:2 - Error during parsing: Unknown directive 'http://www.inv****
Apr 10 07:19:33 ns544081 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Main process exited, code=exited, status=1/FAILURE
Apr 10 07:19:33 ns544081 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Unit entered failed state.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Snap Caddy configuration at /var/snap/rocketchat-server/1248/Caddyfile and compare it with the documented setup. Reproduce the restart and inspect the reported parsing error; done means the Caddyfile parses and the snap service remains running.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ubuntu
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100