I got digitalocean SSL generate by letsencrypt via DNS going. The digitalocean console have a fingerprint with SHA1 code (no idea what that is). I am using cowboy2 and not nginx.
I have no idea how to configure phoenix to use DNS level ssl.
My phoenix app is running on port 4000 and I got the server port fowarding all incoming port 80 request to 4000.
Do I need to do a port forward for 443 requests to 4000 too?
Also how do my prod config looks like?
Is the port for https key should be 443 even though the app is running 4000?
https: [port: 443 ...
Also I’m not sure what to supply keyfile and certfile?
use Mix.Config config :hello_phoenix, HelloPhoenix.Endpoint, http: [port: 4000], url: [host: "example.com", port: 80], cache_static_manifest: "priv/static/manifest.json", https: [port: 443, otp_app: :hello_phoenix, keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"), certfile: System.get_env("SOME_APP_SSL_CERT_PATH"), ]
Thank you for your time