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

HTTPS API specification #1

Open
spannercode opened this issue Apr 11, 2023 · 0 comments
Open

HTTPS API specification #1

spannercode opened this issue Apr 11, 2023 · 0 comments

Comments

@spannercode
Copy link
Member

spannercode commented Apr 11, 2023

HTTPS API service is to be designed to support custom domain on any project or docker container.

How should it work?

  1. Docker: If HTTPS API container is running on a network frontend then all containers running on the same network if set VIRTUAL_HOST_* environment variable, then custom domain set on the vhost variable should work without any additional configuration.
  2. REST API: If reverse proxy info is added via REST API. eg. POST /domains {'domain': 'xxx', 'target': 'yyy'}, it should simply work.

More details to be followed...

REST API

1. Add a custom domain
POST /domains

{
  "domain": "abc.example.com",
  "target": "target.com"
}

2. Get custom domains
GET /domains

[
 {
   "domain": "xxx",
   "target": "yyy"
 }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant