W
Wasp-lang•3w ago
cmilazzo

ssl cert

@kapa.ai How do I add a ssl certificate to my wasp app
3 Replies
kapa.ai
kapa.ai•3w ago
Hi @cmilazzo. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To add an SSL certificate to your Wasp app, you would typically do this through the platform where your app is hosted. For example, if you're using Heroku or Fly.io, they provide automatic SSL certificate management for apps hosted on their platforms. If you're deploying your Wasp app manually to Heroku and using pg-boss for jobs, you need to set an additional environment variable called PG_BOSS_NEW_OPTIONS to {"connectionString":"<REGULAR_HEROKU_DATABASE_URL>","ssl":{"rejectUnauthorized":false}}. This is because pg-boss uses the pg extension, which does not seem to connect to Heroku over SSL by default, which Heroku requires. Additionally, Heroku uses a self-signed cert, so we must handle that as well. You can read more about this here (https://wasp-lang.dev/docs/advanced/deployment/manually#deploy-to-a-heroku-app). If you're deploying your Wasp app to Fly.io, you can set up a custom domain with SSL by following the instructions here (https://wasp-lang.dev/docs/advanced/deployment/cli#using-a-custom-domain-for-your-app). The process involves adding your domain to your Fly client app, adding the DNS records for your domain, and setting your domain as the WASP_WEB_CLIENT_URL environment variable for your server app. Please note that the exact process may vary depending on your hosting provider and the specifics of your application. Always refer to the documentation provided by your hosting provider for the most accurate information. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @cmilazzo, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Filip
Filip•3w ago
Glad you got it working! Btw, may I kindly ask you not to open new questions on the same topic. If you need further input from the bot, just tag it in the same thread.
cmilazzo
cmilazzo•3w ago
Yeah, I realized that after I posted the same question again that I had one already going. Sorry about the extra thread! 🙂
Want results from more Discord servers?
Add your server