https://github.com/fnproject/ext-dns
DNS extension for fnproject.io
https://github.com/fnproject/ext-dns
Last synced: 11 months ago
JSON representation
DNS extension for fnproject.io
- Host: GitHub
- URL: https://github.com/fnproject/ext-dns
- Owner: fnproject
- Created: 2017-11-30T22:37:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-13T20:21:44.000Z (over 8 years ago)
- Last Synced: 2025-07-06T17:49:39.990Z (12 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DNS Extension for Fn
A DNS extension to support nice domains on [Fn](https://fnproject.io).
## Usage
First build a custom Fn image by adding this to your ext.yaml:
`github.com/fnproject/ext-dns`
See: https://github.com/fnproject/fn/blob/master/docs/operating/extending.md for how to build a custom image.
Then add a wildcard domain to your DNS provider that points to your Fn Server/Cluster:
```txt
*.mydomain.com -> myservers.fn.domain.com
```
## TODO
* [ ] support per app custom domains
## Contributing
To test this locally, add a line to `/etc/hosts`
```txt
127.0.0.1 myapp.local.com
```
Start server with the DNS middleware:
```sh
cd main
export API_HOST=localhost,myapp.local.com
go run main.go
```
In another window:
```sh
fn init --runtime go gofunc
cd gofunc
fn deploy --app myapp --local
curl http://myapp.local.com:8080/gofunc
```