loading...

Discussion on: Deploy Flask App - Complete information and Samples

Collapse
sm0ke profile image
Sm0ke Author

Hello!
Digital Ocean has a nice tutorial on this point, using self-signed certs.

Create a Self-Signed SSL Certificate for Nginx on CentOS 7

By using the console, via OpenSSL, the certs can be easily created.
Once you have the certificate and private key, the Nginx should be configured to use them.

server {
    listen 443 http2 ssl;
    listen [::]:443 http2 ssl;

    server_name server_IP_address;

    ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
    ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
}
Collapse
crearesite profile image
WebsiteMarket

Sounds like an easy set up! Thank you!