Elixir Phoenix Framework/Gigalixir-重定向到https
我在Gigalixir上有一个长生不老药应用程序。以下是我当前的配置:Elixir Phoenix Framework/Gigalixir-重定向到https,elixir,phoenix-framework,gigalixir,Elixir,Phoenix Framework,Gigalixir,我在Gigalixir上有一个长生不老药应用程序。以下是我当前的配置: config :zoinks, ZoinksWeb.Endpoint, load_from_system_env: true, server: true, secret_key_base: "${SECRET_KEY_BASE}", url: [scheme: "https", host: "sqrnut.gigalixirapp.com", port: 443], cache_static_manife
config :zoinks, ZoinksWeb.Endpoint,
load_from_system_env: true,
server: true,
secret_key_base: "${SECRET_KEY_BASE}",
url: [scheme: "https", host: "sqrnut.gigalixirapp.com", port: 443],
cache_static_manifest: "priv/static/cache_manifest.json"
但是,当我转到时,它正在监听端口80。我尝试添加以下内容-force\u ssl:[rewrite\u on:[:x\u forwarded\u proto],host:nil]
。但我认为这与为ssl配置cowboy
有关,我正试图避免这种情况
我错过什么了吗?我可以在不配置ssl的情况下重定向url以使用Gigalixir上的负载平衡器吗?当我访问 你能让它工作吗?还是你还需要帮助
Fwiw,force_ssl应该是正确的选择 是的,它正在工作。我一定没把它测试好。谢谢