This commit is contained in:
@@ -8,18 +8,6 @@ import Config
|
|||||||
config :cobblemon_ui, CobblemonUiWeb.Endpoint,
|
config :cobblemon_ui, CobblemonUiWeb.Endpoint,
|
||||||
cache_static_manifest: "priv/static/cache_manifest.json"
|
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
|
# Do not print debug messages in production
|
||||||
config :logger, level: :info
|
config :logger, level: :info
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ if config_env() == :prod do
|
|||||||
config :cobblemon_ui, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
|
config :cobblemon_ui, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
|
||||||
|
|
||||||
config :cobblemon_ui, CobblemonUiWeb.Endpoint,
|
config :cobblemon_ui, CobblemonUiWeb.Endpoint,
|
||||||
url: [host: host, port: 443, scheme: "https"],
|
url: [host: host, port: 80, scheme: "http"],
|
||||||
http: [
|
http: [
|
||||||
# Enable IPv6 and bind on all interfaces.
|
# Enable IPv6 and bind on all interfaces.
|
||||||
# Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access.
|
# Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access.
|
||||||
|
|||||||
Reference in New Issue
Block a user