From ce0b0ab883500289c57a3dc0a9d7cef0c9bcd560 Mon Sep 17 00:00:00 2001 From: cbh123 Date: Sun, 21 Apr 2024 16:26:28 -0700 Subject: [PATCH] add www --- config/prod.exs | 6 ++++-- fly.toml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/prod.exs b/config/prod.exs index 416d11c6..102d4bd0 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -11,11 +11,13 @@ use Mix.Config # before starting your production server. config :shlinkedin, ShlinkedinWeb.Endpoint, http: [port: {:system, "PORT"}], - url: [scheme: "https", host: "www.shlinkedin.com", port: 443], + url: [scheme: "https", host: "shlinkedin.com", port: 443], force_ssl: [rewrite_on: [:x_forwarded_proto]], cache_static_manifest: "priv/static/cache_manifest.json", check_origin: [ - "https://shlinkedin.fly.dev" + "https://shlinkedin.com", + "https://shlinkedin.fly.dev", + "https://www.shlinkedin.com" ] # Do not print debug messages in production diff --git a/fly.toml b/fly.toml index c6c69ef5..59199638 100644 --- a/fly.toml +++ b/fly.toml @@ -11,7 +11,7 @@ kill_signal = 'SIGTERM' release_command = "/app/bin/migrate" [env] - PHX_HOST = 'shlinkedin.fly.dev' + PHX_HOST = 'shlinkedin.com' PORT = '8080' [experimental]