π«Deployment
How to get your app running in production
Before deploy
config :my_app, :content_security_policy, %{
default_src: [
....
"wss://yourdomain.com",
"wss://yourdomain.com/live/websocket"
]
}Removing CSP
# Change this:
plug(:put_secure_browser_headers, %{
"content-security-policy" =>
ContentSecurityPolicy.serialize(
struct(ContentSecurityPolicy.Policy, PetalPro.config(:content_security_policy))
)
})
# To this:
plug :put_secure_browser_headersFaker dependency and the Landing Page
A word on environment variables
Deployment with Fly.io
πDeploy to Fly.ioWas this helpful?
