Skip to content

Improve case of single-site at bind address #8

@danneu

Description

@danneu

When using prox without any origin servers, like when using prox to simply serve a directory of static files at an address, you have to create a [[site]] entry with the same host as the server.bind address:

[server]
bind = "localhost:3000"

[[site]]
host = "localhost:3000"
root = "./public"

The duplication of bind and host is annoying, but it allowed me to avoid special-casing a missing host field in the site parser for now.

One idea is to allow site options on the server table:

[server]
bind = "localhost:3000"
root = "./public"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions