How to ensure that my Nginx site-conf file will have only
listen 443 ssl http2; # managed by Certbot
Without:
listen 80; # managed by Certbot
?
I can use a sed operation to delete the row with listen 80 and another sed to add http2 after 443 ssl but I wonder if it can be done directly when executing: