Using Caddyserver config file
Hello
I would like to know if there is a possibility to use Caddyserver to serve a web project using Railway? I mean, the Caddyfile config could be inside the project and detected by Railway, or maybe using Docker. I'm not sure Railway supports Docker yet
I have a special requirements with this Caddy config to get SSL certificates on demand for customers
If it's not possible, there is an alternative using Railway to get this kind of usage?
Thanks
8 Replies
You'd need to modify the static file provider to support that and fetch Caddy in that instance
GitHub
nixpacks/staticfile.rs at main · railwayapp/nixpacks
App source + Nix packages + Docker = Image. Contribute to railwayapp/nixpacks development by creating an account on GitHub.
Please let me know if you'd be interested in adding a PR and I can help by reviewing it
I see the default reverse proxy is nginx. There will be a conflict, or we need to add Caddy instead of nginx as a second config option, right?
What you'd do is, in the
get_build_plan
call, you'd check for a caddyfile, and if that's included, you'd use caddy instead of nginxGitHub
nixpacks/staticfile.rs at main · railwayapp/nixpacks
App source + Nix packages + Docker = Image. Contribute to railwayapp/nixpacks development by creating an account on GitHub.
I don't have the time currently to dive into this code modification, but I'll keep in mind for sure and maybe do it later because I really don't want to manage my server myself anymore. Thanks for the information
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View