SSL on localhost

View Source

Prefer to do local development using SSL to resemble production as much as possible. If you're using MacOS, you can run this script to set everything up:

sudo sh ./scripts/ssl.sh

If you're not running MacOS, have a look at the scripts/ssl.sh script and adapt it to your OS.

Running the SSL server

After running the script above, you can start your local server (mix phx.server) and test your domains using:

URLProductProduction URL
https://localhost:4001Main appzoonk.com
https://zoonk.test:4001Main appzoonk.com
https://team.test:4001Teams, landing pagezoonk.team
https://myorg.team.test:4001Org white labelmyorg.zoonk.team
https://school.test:4001Schools, landing pagezoonk.school
https://myschool.school.test:4001School white labelmyschool.zoonk.school
https://store.test:4001Creators, landing pagezoonk.store
https://mystore.creator.test:4001Creator white labelmypage.zoonk.io

Note: For testing the Sign in with Apple flow, you will need to add the zoonk.app domain to the scripts/ssl.sh file. Make sure to remove it later as it will redirect zoonk.app requests to localhost.