Skip to content

Commit

Permalink
temporary: test out alternate CDN configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Jan 23, 2025
1 parent 4bde6d7 commit c35d08d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ config :dotcom, :req_module, Req

tile_server_url =
if config_env() == :prod,
do: "https://cdn.mbta.com",
do: "https://d2l7znrpys0704.cloudfront.net",
else: "https://mbta-map-tiles-dev.s3.amazonaws.com"

config :dotcom, tile_server_url: tile_server_url
Expand Down
2 changes: 2 additions & 0 deletions lib/dotcom_web/plugs/secure_headers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ defmodule DotcomWeb.Plugs.SecureHeaders do
content security policy directives at funtime.
"""

@tile_url Application.compile_env!(:dotcom, :tile_server_url)
@base_csp_directives %{
connect: ~w[
connect-src
'self'
*.arcgis.com
*.googleapis.com
*.s3.amazonaws.com
#{@tile_url}
analytics.google.com
cdn.mbta.com
px.ads.linkedin.com
Expand Down

0 comments on commit c35d08d

Please sign in to comment.