Read key pem from file in production

This commit is contained in:
Shadowfacts 2024-04-12 17:52:57 -04:00
parent eb04d0d4f7
commit 76a480c0b7
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ if config_env() == :prod do
# Check `Plug.SSL` for all available options in `force_ssl`.
config :tusker_push, :apns,
key_pem: System.fetch_env!("APNS_KEY_PEM"),
key_pem: File.read!(System.fetch_env!("APNS_KEY_PEM_PATH")),
key_id: System.fetch_env!("APNS_KEY_ID"),
team_id: System.fetch_env!("APNS_TEAM_ID"),
bundle_id: System.fetch_env!("APNS_BUNDLE_ID")