Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Elixir Phoenix Framework/Gigalixir-重定向到https_Elixir_Phoenix Framework_Gigalixir - Fatal编程技术网

Elixir Phoenix Framework/Gigalixir-重定向到https

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

我在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_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应该是正确的选择

是的,它正在工作。我一定没把它测试好。谢谢