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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions