File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,15 @@ import Config
5
5
# manifest is generated by the `mix assets.deploy` task,
6
6
# which you should run after static files are built and
7
7
# before starting your production server.
8
- config :mjw , MjwWeb.Endpoint , cache_static_manifest: "priv/static/cache_manifest.json"
8
+ config :mjw , MjwWeb.Endpoint ,
9
+ url: [ host: "mahjongwind.com" , port: 443 , scheme: "https" ] ,
10
+ cache_static_manifest: "priv/static/cache_manifest.json" ,
11
+ check_origin: [ "//mahjongwind.com" ] ,
12
+ force_ssl: [
13
+ host: nil ,
14
+ rewrite_on: [ :x_forwarded_port , :x_forwarded_proto ] ,
15
+ hsts: true
16
+ ]
9
17
10
18
# Configures Swoosh API Client
11
19
config :swoosh , api_client: Swoosh.ApiClient.Finch , finch_name: Mjw.Finch
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ import Config
17
17
# Alternatively, you can use `mix phx.gen.release` to generate a `bin/server`
18
18
# script that automatically sets the env var above.
19
19
if System . get_env ( "PHX_SERVER" ) do
20
- config :mjw , MjwWeb.Endpoint , server: true
20
+ config :mjw , MjwWeb.Endpoint ,
21
+ server: true ,
22
+ url: [ host: "mahjongwind.com" ]
21
23
end
22
24
23
25
if config_env ( ) == :prod do
@@ -50,7 +52,7 @@ if config_env() == :prod do
50
52
You can generate one by calling: mix phx.gen.secret
51
53
"""
52
54
53
- host = System . get_env ( "PHX_HOST" ) || "example .com"
55
+ host = System . get_env ( "PHX_HOST" ) || "mahjongwind .com"
54
56
port = String . to_integer ( System . get_env ( "PORT" ) || "4000" )
55
57
56
58
config :mjw , :dns_cluster_query , System . get_env ( "DNS_CLUSTER_QUERY" )
You can’t perform that action at this time.
0 commit comments