Skip to content

Basically for own usages. Redrect local (outdated) urls to new one or global urls

Notifications You must be signed in to change notification settings

zavodnyuk/redirect-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redirect app

Code Size Code Size

Faced with issue when I (or someone from familly) get used to local urls. And it's annoying for them to learn new urls every time I change configs / use new domain name / port. So as a workaround I decided to redirect them.

Eventually it must be replaced with static domain name and use local dns resolved that handle all of it.

How it works:

Simple node aaplication with only one listener function that redicts to predirefined static url. Wrapped into docker container

Build

  • cd into project directory

  • docker build -t redirect_app .

Run in docker

Docker Pulls Docker Size

docker run \
-p 8666:80 \
--name redirect_test \
--restart=unless-stopped \
-e TARGET_URL=https://google.com \
-d zavodniuk/redirect_app

Run in docker-compose

version: "3"

services:
  deluge:
  image: zavodniuk/redirect_app
    container_name: redirect_deluge_app
    restart: unless-stopped
    ports:
      - ${DELUGE_PORT}:80
    environment:
      - TARGET_URL=${DELUGE_TARGET_URL}

About

Basically for own usages. Redrect local (outdated) urls to new one or global urls

Resources

Stars

Watchers

Forks

Packages

No packages published