prod.exs (1153B)
1 import Config 2 3 # Note we also include the path to a cache manifest 4 # containing the digested version of static files. This 5 # manifest is generated by the `mix assets.deploy` task, 6 # which you should run after static files are built and 7 # before starting your production server. 8 config :daily_tracker, DailyTrackerWeb.Endpoint, 9 cache_static_manifest: "priv/static/cache_manifest.json" 10 11 # Force using SSL in production. This also sets the "strict-security-transport" header, 12 # known as HSTS. If you have a health check endpoint, you may want to exclude it below. 13 # Note `:force_ssl` is required to be set at compile-time. 14 config :daily_tracker, DailyTrackerWeb.Endpoint, 15 force_ssl: [ 16 rewrite_on: [:x_forwarded_proto], 17 exclude: [ 18 # paths: ["/health"], 19 hosts: ["localhost", "127.0.0.1"] 20 ] 21 ] 22 23 # Configure Swoosh API Client 24 config :swoosh, api_client: Swoosh.ApiClient.Req 25 26 # Disable Swoosh Local Memory Storage 27 config :swoosh, local: false 28 29 # Do not print debug messages in production 30 config :logger, level: :info 31 32 # Runtime production configuration, including reading 33 # of environment variables, is done on config/runtime.exs.