GithubHelp home page GithubHelp logo

https-gateway-lan's Introduction

HTTPS-LAN

HTTPS gateway in LAN

Reason

Many hight version software repository using HTTPS, like Docker Kubernate Gradle, and this is a good feature. We want an easy way to use HTTPS in the LAN repository server. so it is born.

English is not my first language, if this document has a language grammar error, please help us rewrite it.

Before the start

  • Install docker docker-compose

  • The LAN must be connected to the WAN, The Certbot will auto-renew the certificate

  • Change your domain nameservers to Luadns or Cloudflare

  • The Luadns allowed changing A record to LAN IP, but many routes have RFC1918 problem, you can set the route whitelist

  • We recommend using Luadns, The Cloudflare doesn't allow config LAN IP, you can use a custom DNS server, or config the route DNS

Guide

1. modify .env

# both support Luadns and Cloudflare-DNS, if you are used Freenom free domain, please use the Luadns.

# if you are using Cloudflare
#      set up MY_CLOUDFLARE_TOKEN
# if you are using Luadns
#      set up MY_LUADNS_EMAIL, MY_LUADNS_TOKEN
# and then 
#      set up MY_DOMAIN and MY_EMAIL

vi .env

2. init

# init nginx config
docker-compose -f ./docker-compose.init.yaml run --rm common_nginx_init 

# init certbot with luadns
docker-compose -f ./docker-compose.init.yaml run --rm common_certbot_luadns_init 

# init certbot with cloudflare, We recommend using Luadns
docker-compose -f ./docker-compose.init.yaml run --rm common_certbot_cloudflare_init

3. start

# run with luadns
docker-compose up common_certbot_luadns gateway_nginx

# run with Cloudflare, We recommend using Luadns
docker-compose up common_certbot_cloudflare gateway_nginx

https-gateway-lan's People

Contributors

chaceyang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.