Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-configure routes for static websites #93

Open
Nowaker opened this issue Dec 23, 2014 · 0 comments
Open

auto-configure routes for static websites #93

Nowaker opened this issue Dec 23, 2014 · 0 comments
Assignees

Comments

@Nowaker
Copy link
Member

Nowaker commented Dec 23, 2014

GitHub static pages can be delegated to a custom domain by adding a CNAME to root directory. We could recognize the CNAME file placed in the root of static website and auto-configure http-master.

Currently it looks like:

{
  "443": {
    "static": {
      "example.com": "/home/example.com/public"
    }
  }
}

It could be reduced to:

{
  "443": {
    "static": [
      "/home/example.com/public"
    ]
  }
}

Additionally, if we pass the port number in file called PORT file in the root directory, this is all we need:

{
  "static": [
    "/home/example.com/public"
  ]
}

I'm not sure how it plays with your ideas for future (the user-friendly config), but the idea is simple: read CNAME and PORT files and configure the http-master accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants