View Source CertMagex (CertMagex v1.0.0)
Automatic SSL certs from Let's Encrypt for your Phoenix applications.
Installation
For Cowboy add to your prod.exs:
config <your_app>, <your_endpoint>,
# ATTENTION: Ensure you comment http: out and port 80 is free!
https: [port: 443, sni_fun: &CertMagex.sni_fun/1],
...
For Bandit add to your prod.exs:
config <your_app>, <your_endpoint>,
# ATTENTION: Ensure you comment http: out and port 80 is free!
https: [port: 443, thousand_island_options: [transport_options: [sni_fun: &CertMagex.sni_fun/1]]],
...
Summary
Functions
The SNI function to be used in your Phoenix or Cowboy configuration. E.g. for Cowboy add this to your prod.exs
Functions
The SNI function to be used in your Phoenix or Cowboy configuration. E.g. for Cowboy add this to your prod.exs:
config <your_app>, <your_endpoint>,
# ATTENTION: Ensure you comment http: out and port 80 is free!
https: [port: 443, sni_fun: &CertMagex.sni_fun/1],
...