Skip to content

add Caddyfile example #18

@coolaj86

Description

@coolaj86

If you need to install caddy: https://webinstall.dev/caddy

caddy run --config ./Caddyfile --adapter caddyfile

Caddyfile:

example.com {
    reverse_proxy localhost:8080
}

If you need setcap-netbind for running on 80 and 443 as non-root: https://webinstall.dev/setcap-netbind

sudo env PATH="$PATH" \
    serviceman add --name "caddy" --system --path="$PATH" -- \
    caddy run --config ./Caddyfile --adapter caddyfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions