I use devilbox as local development and found devilbox is very convenient .
Later i want to use devilbox as prouduction platform.
but i need https support for devilbox .
So , It is a reverse proxy with https for supporting devilbox.
- Disable expose 80,443 ports in devilbox (in .env config devilbox set port 80 -> 8000, 443 - 4443)
- git clone https://github.com/bigxu/nginx-acme.git
- cd nginx-acme && docker-compose up -d
- openssl dhparam -out /acme.sh/dhparam.pem 4096
- docker-compose exec acme-sh sh
acme.sh --issue -d test.example.com --server letsencrypt --standalone
-
create nginx conf for your vhost. there is a example example443.conf.txt
-
docker-compose exec nginx-srv -s reload.