Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jjideenschmiede/jj-redirect
A lillte docker application to redirect to a url.
https://github.com/jjideenschmiede/jj-redirect
docker docker-image dockerfile golang http redirect
Last synced: about 1 month ago
JSON representation
A lillte docker application to redirect to a url.
- Host: GitHub
- URL: https://github.com/jjideenschmiede/jj-redirect
- Owner: jjideenschmiede
- Created: 2021-05-26T19:17:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-03T21:07:11.000Z (about 3 years ago)
- Last Synced: 2024-10-11T23:19:09.462Z (3 months ago)
- Topics: docker, docker-image, dockerfile, golang, http, redirect
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/jjdevelopment/jj-redirect
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# J&J Redirect
[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/jjideenschmiede/jj-redirect.svg)](https://golang.org/) [![Go](https://github.com/jjideenschmiede/jj-redirect/actions/workflows/go.yml/badge.svg)](https://github.com/jjideenschmiede/jj-redirect/actions/workflows/go.yml) [![Docker Image CI](https://github.com/jjideenschmiede/jj-redirect/actions/workflows/docker-image.yml/badge.svg)](https://github.com/jjideenschmiede/jj-redirect/actions/workflows/docker-image.yml) [![Docker Hub](https://img.shields.io/docker/pulls/jjdevelopment/jj-redirect.svg)](https://hub.docker.com/r/jjdevelopment/jj-redirect)
This code can be used to create a Docker container that can be used to redirect to a URL. You can find the corresponding image [here](https://hub.docker.com/r/jjdevelopment/jj-redirect) in Docker Hub.
## Start container
In order for a target to be defined, the REDIRECT_TARGET variable must be defined. This then works as follows.
```console
docker run --name redirect -d --restart always -e REDIRECT_TARGET=https://jj-ideenschmiede.de -p 80:80 jjdevelopment/jj-redirect:latest
```