Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```