Skip to content

Exploring caddy for self hosted reverse proxy #3323

Description

@reynaldichernando

we're currently using nginx for reverse proxy in self hosted puter, and the TLS setup is kinda cumbersome
https://github.com/HeyPuter/puter/blob/main/doc/self-hosting.md

Caddy basically solves this, by automatically setting up all HTTPS stuff, so devs don't need to handle this manually
https://caddyserver.com/

the routing file

app.example.com {
    reverse_proxy localhost:3000
}

api.example.com {
    reverse_proxy localhost:8080
}

and it automatically sets up TLS

i believe this can greatly improve self hosting experience

some self hosted inspiration with caddy:
https://github.com/rybbit-io/rybbit
https://github.com/corsfix/corsfix

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions