R
Railway2y ago
dolu_

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
tls my@email.com {
on_demand
}
tls my@email.com {
on_demand
}
If it's not possible, there is an alternative using Railway to get this kind of usage? Thanks
8 Replies
JustJake
JustJake2y ago
You'd need to modify the static file provider to support that and fetch Caddy in that instance
JustJake
JustJake2y ago
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.
JustJake
JustJake2y ago
Please let me know if you'd be interested in adding a PR and I can help by reviewing it
dolu_
dolu_2y ago
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?
JustJake
JustJake2y ago
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 nginx
JustJake
JustJake2y ago
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.
dolu_
dolu_2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View