diff --git a/config/prod.exs b/config/prod.exs index 4f2cde2..995780e 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -8,18 +8,6 @@ import Config config :cobblemon_ui, CobblemonUiWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json" -# Force using SSL in production. This also sets the "strict-security-transport" header, -# known as HSTS. If you have a health check endpoint, you may want to exclude it below. -# Note `:force_ssl` is required to be set at compile-time. -config :cobblemon_ui, CobblemonUiWeb.Endpoint, - force_ssl: [ - rewrite_on: [:x_forwarded_proto], - exclude: [ - # paths: ["/health"], - hosts: ["localhost", "127.0.0.1"] - ] - ] - # Do not print debug messages in production config :logger, level: :info diff --git a/config/runtime.exs b/config/runtime.exs index cb68cb1..045a3b7 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -41,7 +41,7 @@ if config_env() == :prod do config :cobblemon_ui, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") config :cobblemon_ui, CobblemonUiWeb.Endpoint, - url: [host: host, port: 443, scheme: "https"], + url: [host: host, port: 80, scheme: "http"], http: [ # Enable IPv6 and bind on all interfaces. # Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access.