Running nginx as reverse proxy in front of web and api server.
- Support HTTPS by using mkcert.
- Redirect HTTP to HTTPS automatically.
- Provide access log and error log.
-
Install [docker-ce]
-
Start service
sh start.sh
-
System architecture:
User Traffic
|
|
+------v------+
|Reverse Proxy|
+-------------+
|
+-----+ | +-----+
| Web <--/*--+-/api-----> API |
+-----+ /swagger +-----+
/assets
/docs
-
Stop service
sh stop.sh