Skip to content

jjideenschmiede/jj-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

J&J Redirect

GitHub go.mod Go version of a Go module Go Docker Image CI Docker Hub

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

docker run --name redirect -d --restart always -e REDIRECT_TARGET=https://jj-ideenschmiede.de -p 80:80 jjdevelopment/jj-redirect:latest