scott / pocketbase-do-packer

DigitalOcean marketplace packer for PocketBase
MIT License
6 stars 1 forks source link

Documentation for setting up SSL with 1-Click #2

Open nrthbound opened 1 year ago

nrthbound commented 1 year ago

I appreciate the time and effort that went into building this one-click, however; the Caddy setup is a nightmare. The Caddyfile already has content in it by default, which the instructions for this 1-click and the instructions linked for setting up SSL don't mention how to deal with.

The documentation (https://caddyserver.com/docs/quick-starts/https) assume a Caddyfile doesn't exist. Is there any chance you could cover this a little more? What do we actually need to do to get a proper Let's Encrypt set up, and maybe also educate us on why you went the Caddy route instead of using the built-in Let's Encrypt functionality built into Pocketbase? I don't know anything about Caddy, so I assume there is a good reason for using it, but it's beyond me at the moment.

Thank you again for your effort in creating this one-click.

angledeveloper commented 5 months ago

hey

use this as the caddy file yourdomain.com { reverse_proxy localhost:8090 }

then run systemctl restart caddy after that rn systemctl restart pocketbase

and it shoud start working