Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 468 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 468 Bytes

nginx-https-proxy

概要

以下の機能を docker-compose で実装したサンプルです。

  • backendにAPIサーバがいる
  • APIサーバはhttpsをサポートしていない
  • nginxをリバースプロキシにしてhttpsに対応する

実行方法

$ cd web
$ openssl req -new -days 365 -x509 -nodes -keyout cert.key -out cert.crt
$ cd ..
$ docker-compose build
$ docker-compose up