I added domain to my dokku app
dokku domains:add myapp example.com
then I encrypted the app connection
dokku letsencrypt myapp
the problem is when I deployed my app it deployed to http
and https
connections
=====> Application deployed:
http://example.com
https://example.com
My question is how to make dokku deploy app to https
connection only
The reason behind make dokku only deploy app to
https
connection
Because if app deploy to
http
connection then the attacker can access my app via requestedhttp
connectionhttp://example.com
using postman (for example or other tool). An example of this case isheruko.com
it is encrypted using Letsencrypt but if you try to make request using http connectionhttp://heruko.com
via postman then success response will returned.Another reason that if the
https
certificate expires then the attacker can access my app via http connection