prod.exs (618B)
1 import Config 2 3 # Force using SSL in production. This also sets the "strict-security-transport" header, 4 # known as HSTS. If you have a health check endpoint, you may want to exclude it below. 5 # Note `:force_ssl` is required to be set at compile-time. 6 config :users, UsersWeb.Endpoint, 7 force_ssl: [ 8 rewrite_on: [:x_forwarded_proto], 9 exclude: [ 10 # paths: ["/health"], 11 hosts: ["localhost", "127.0.0.1"] 12 ] 13 ] 14 15 # Do not print debug messages in production 16 config :logger, level: :info 17 18 # Runtime production configuration, including reading 19 # of environment variables, is done on config/runtime.exs.