https://github.com/trendev/kiam-redirect
microservice redirecting comptandye.fr requests to kiam.fr
https://github.com/trendev/kiam-redirect
Last synced: 24 days ago
JSON representation
microservice redirecting comptandye.fr requests to kiam.fr
- Host: GitHub
- URL: https://github.com/trendev/kiam-redirect
- Owner: trendev
- Created: 2020-04-10T10:45:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-01T11:53:05.000Z (over 5 years ago)
- Last Synced: 2023-03-05T04:49:05.425Z (about 3 years ago)
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kiam-redirect
redirects all request from comptandye.fr to kiam.fr :smiley:
### build
`docker build -t trendev/kiam-redirect .`
### run
`docker run --rm -p 80:9000 -e URL="https://github.com/trendev" trendev/kiam-redirect`
### test
`curl -vvv localhost`
```
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 80 (#0)
> GET / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 308 Permanent Redirect
< Content-Type: text/html; charset=utf-8
< Location: https://github.com/trendev
< Date: Fri, 10 Apr 2020 11:54:32 GMT
< Content-Length: 62
<
Permanent Redirect.
* Connection #0 to host localhost left intact
* Closing connection 0`