简体   繁体   中英

Add Https support to Linux Vm Running Docker Compose

I just deployed on a Linux VM on Azure a docker-compose file containing asp.net core applications. Right now it's HTTP, when I call the Vm I call it via the DNS and the entry port of my ApiGateway running inside a container. Since it's not really secure with user's informations, I was wondering what should I do :

1) Make the connection to my Vm https (how would I do that) instead of Http? 2) Make my container https instead of http?

I've read many articles but a lot either explain how to add ssl certificate to a new vm or with IIS/Ngninx and not with a container environment.

Any help or explanations are welcome, it's really not my cup of tea...

Thanks in advance and have a great day !

Lio

因此,我最终使用 certbot 向 nginx 添加了 ssl 证书,然后通过作为反向代理的 nginx 将我的 http 流量重定向到 https。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM