Quellcode durchsuchen

Switch to an actual host url

theenglishway (time) vor 4 Jahren
Ursprung
Commit
9bd97c9b2c
1 geänderte Dateien mit 2 neuen und 7 gelöschten Zeilen
  1. 2 7
      config/runtime.exs

+ 2 - 7
config/runtime.exs

@@ -12,21 +12,16 @@ if config_env() == :prod do
     Helper.load_all([
       "SECRET_KEY_BASE",
       "PORT",
-      "HOST_IP"
+      "HOST"
     ])
 
   config :vaccins, VaccinsWeb.Endpoint,
     secret_key_base: env.secret_key_base,
-    url: [host: env.host_ip, port: env.port],
+    url: [host: env.host, port: env.port],
     http: [
       port: String.to_integer(env.port),
       net: :inet,
       transport_options: [socket_opts: [:inet6]]
     ],
-    check_origin: [
-      "http://localhost:#{env.port}",
-      "http://192.168.0.13:#{env.port}",
-      "http://#{env.host_ip}:#{env.port}"
-    ],
     server: true
 end