|
| 1 | +use Mix.Config |
| 2 | + |
| 3 | +# For production, don't forget to configure the url host |
| 4 | +# to something meaningful, Phoenix uses this information |
| 5 | +# when generating URLs. |
| 6 | +# |
| 7 | +# Note we also include the path to a cache manifest |
| 8 | +# containing the digested version of static files. This |
| 9 | +# manifest is generated by the `mix phx.digest` task, |
| 10 | +# which you should run after static files are built and |
| 11 | +# before starting your production server. |
| 12 | +config :agma, AgmaWeb.Endpoint, |
| 13 | + url: [host: "example.com", port: 80], |
| 14 | + cache_static_manifest: "priv/static/cache_manifest.json" |
| 15 | + |
| 16 | +# Do not print debug messages in production |
| 17 | +config :logger, level: :info |
| 18 | + |
| 19 | +# ## SSL Support |
| 20 | +# |
| 21 | +# To get SSL working, you will need to add the `https` key |
| 22 | +# to the previous section and set your `:url` port to 443: |
| 23 | +# |
| 24 | +# config :agma, AgmaWeb.Endpoint, |
| 25 | +# ... |
| 26 | +# url: [host: "example.com", port: 443], |
| 27 | +# https: [ |
| 28 | +# port: 443, |
| 29 | +# cipher_suite: :strong, |
| 30 | +# keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"), |
| 31 | +# certfile: System.get_env("SOME_APP_SSL_CERT_PATH"), |
| 32 | +# transport_options: [socket_opts: [:inet6]] |
| 33 | +# ] |
| 34 | +# |
| 35 | +# The `cipher_suite` is set to `:strong` to support only the |
| 36 | +# latest and more secure SSL ciphers. This means old browsers |
| 37 | +# and clients may not be supported. You can set it to |
| 38 | +# `:compatible` for wider support. |
| 39 | +# |
| 40 | +# `:keyfile` and `:certfile` expect an absolute path to the key |
| 41 | +# and cert in disk or a relative path inside priv, for example |
| 42 | +# "priv/ssl/server.key". For all supported SSL configuration |
| 43 | +# options, see https://hexdocs.pm/plug/Plug.SSL.html#configure/1 |
| 44 | +# |
| 45 | +# We also recommend setting `force_ssl` in your endpoint, ensuring |
| 46 | +# no data is ever sent via http, always redirecting to https: |
| 47 | +# |
| 48 | +# config :agma, AgmaWeb.Endpoint, |
| 49 | +# force_ssl: [hsts: true] |
| 50 | +# |
| 51 | +# Check `Plug.SSL` for all available options in `force_ssl`. |
| 52 | + |
| 53 | +# Finally import the config/prod.secret.exs which loads secrets |
| 54 | +# and configuration from environment variables. |
| 55 | +import_config "prod.secret.exs" |
0 commit comments