https://github.com/karpeleslab/cloudhttp
easy ssl http server for aws, gcp, etc
https://github.com/karpeleslab/cloudhttp
Last synced: 12 months ago
JSON representation
easy ssl http server for aws, gcp, etc
- Host: GitHub
- URL: https://github.com/karpeleslab/cloudhttp
- Owner: KarpelesLab
- License: mit
- Created: 2024-08-21T11:24:54.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-22T03:27:46.000Z (almost 2 years ago)
- Last Synced: 2024-08-24T07:04:33.304Z (almost 2 years ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/KarpelesLab/cloudhttp)
# cloudhttp
Easily setup a HTTPs server on most cloud providers (aws, gcp, etc) without having to worry about much of anything.
Each server will automatically get a dynamic .g-dns.net domain for the SSL certificate.
## Usage
```go
mux := http.NewServeMux()
// setup mux handlers
err := cloudhttp.Serve(mux)
if err != nil {
// ...
}
```
With just this code, a http/https server will start and will have a valid SSL certificate, provided the host's IP address is publicly accessible and port 443 isn't blocked from outside.