SSL on localhost

View Source

Sometimes you may need to test SSL on your local machine. Have a look at the scripts/ssl.sh script on how to set it up. You can also find it on GitHub.

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.