https://github.com/dps/redirector
Simple golang service to redirect all urls to another domain
https://github.com/dps/redirector
Last synced: 11 months ago
JSON representation
Simple golang service to redirect all urls to another domain
- Host: GitHub
- URL: https://github.com/dps/redirector
- Owner: dps
- Created: 2020-07-08T05:29:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-02T03:38:54.000Z (almost 6 years ago)
- Last Synced: 2024-04-16T18:33:16.431Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# redirector
Simple golang service to redirect all urls to another domain.
Host -> Redirect domain mapping is read from redis on each request, 301 is served.
Set environment variables
```
REDIS_HOST
REDIS_PORT
REDIS_KEY
PORT
```
Set keys
```
{request.domain}:redirect = destination.domain
```