/local-reverse-proxy

Running nginx as reverse proxy in front of web and api server.

Primary LanguageShell

Local Reverse Proxy

Running nginx as reverse proxy in front of web and api server.

Feature

  • Support HTTPS by using mkcert.
  • Redirect HTTP to HTTPS automatically.
  • Provide access log and error log.

Usage

  1. Install [docker-ce]

  2. Start service

    sh start.sh
    
  3. System architecture:

        User Traffic
             |
             |
      +------v------+
      |Reverse Proxy|
      +-------------+
             |
+-----+      |          +-----+
| Web <--/*--+-/api-----> API |
+-----+        /swagger +-----+
               /assets
               /docs
  1. Stop service

    sh stop.sh