Skip to content

Instantly share code, notes, and snippets.

@damonvjanis
Last active June 10, 2021 12:04
Show Gist options
  • Save damonvjanis/77a36ca127135727d3f4b932b8c65d69 to your computer and use it in GitHub Desktop.
Save damonvjanis/77a36ca127135727d3f4b932b8c65d69 to your computer and use it in GitHub Desktop.
...
config :my_app, MyAppWeb.Endpoint,
url: [host: "<YOUR_DOMAIN.COM>", port: 443],
cache_static_manifest: "priv/static/cache_manifest.json",
server: true,
force_ssl: [hsts: true],
http: [port: 4000, transport_options: [socket_opts: [:inet6]]],
https: [
port: 4040,
cipher_suite: :strong,
transport_options: [socket_opts: [:inet6]]
]
# Set path to cert folder
config :my_app, :cert_path, "/home/<YOUR_USERNAME>/site_encrypt_db"
# Set the cert mode so site_encrypt knows to hit live LetsEncrypt
config :my_app, :cert_mode, "production"
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment