-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add example Caddy 2 config to documentation #3785
Comments
im unfamiliar with caddy but i heard it's good |
Never used Caddy because other solutions are easier if you have multiple docker containers which may not be websites running. But since rssbridge is basically just a website which requires nothing special, try this in your caddyfile:
the first entry is obviously your supposed subdomain. This defines what caddy should do when a request comes to this url. The reverse_proxy will only do that proxying. Proxy this to the name of your rssbridge container (use the docker "container_name" directive to define that in your compose file) and port. If you want to "try something else", look at SWAG from LSIO or Cosmos UI (relatively new but I've been testing it for a while and its pretty cool. I also added rssbridge to it :) ) |
Thank you for your answer, I'm sure if I was running RSS-Bridge with Docker that would work flawlessly. However, I'm not using Docker on my VPS. I installed RSS-Bridge through following commands:
I then attempted my best to deduce from various sources how to translate RSS-Bridge's Nginx config to a Caddy config, and added the following to Caddyfile (I changed my domain to example.com for privacy):
I then run the following to make sure the Caddyfile doesn't have errors, and restarted Caddy:
However, when I try to go to rss-bridge.example.com, all I see is a blank page. I'm not sure what I'm doing wrong - am I perhaps missing some crucial basic step in running a PHP site in general that would be obvious to a PHP developer, or is the config still wrong in some way? I would appreciate any further help. |
Further update: Looks like the page loads now! For the folks facing similar problems in setting up RSS-Bridge, know that I changed two things (but I think 1 was the one that was the actual issue):
I changed up the following config:
by switching the socket to a port, like so:
After saving, I made sure to refresh fpm:
And then I changed the socket to a port in Caddyfile, and repeated the steps to check Caddyfile validity and restart Caddy:
|
Giving everyone rwx is probably not a good practice for public facing websites. If I was you, i would join the caddy discord and ask there if this is a good approach or if theres an easier way. |
After some figuring things out, in the end I set it up as following:
I edited following config: nano /etc/php/7.4/fpm/pool.d/www.conf by switching up the user and group to Caddy's:
After saving the config, I made sure to refresh fpm: systemctl restart php7.4-fpm
systemctl status php7.4-fpm
sudo chown -R caddy:caddy /var/www/rss-bridge
sudo chmod -R 2770 /var/www/rss-bridge If I understand correctly, this way only the folder's owner user+group has access to the folder. |
there is recent changes to README.md related to this |
Is your feature request related to a problem? Please describe.
I'm not sure how to correctly configure Caddy 2 to serve RSS-Bridge on my VPS (I'm relatively new to self-hosting).
Describe the solution you'd like
Add an example Caddyfile to installation instructions in documentation.
Describe alternatives you've considered
I tried googling but I didn't get a definitive answer on how to achieve it.
The text was updated successfully, but these errors were encountered: