cloudcaptainsh / cloudcaptain

Issue Tracker for CloudCaptain
13 stars 3 forks source link

Cannot deploy play application with HTTPS #241

Closed henricook closed 3 years ago

henricook commented 3 years ago

Hi Boxfuse team,

I'm deploying a simple play application with: boxfuse run -env=prod -domain=api.mydomain.com -app.type=load-balanced-https -tls.type=acm. I destroyed the app in Boxfuse before running this to ensure a clean slate.

We're in the Singapore AWS region, there's a verified certificate for api.mydomain.com in the ACM for this region

When the command is complete it says: Successfully running henricook/simple-backend:0.0.0.1605434912171 in prod at http://api.mydomain.com/

HTTPS doesn't work though. Do you have any idea where I'm failing? I believe i've followed all the steps in the documentation

henricook commented 3 years ago

Fixed. When I'd first tried using play.server.https.port=443 in my application.conf it wasn't working. This is because my application was an old app.type. After destroying the app and relaunching it as above, then adding play.server.https.port=443 back into my application.conf and deploying again, all worked as expected.

axelfontaine commented 3 years ago

Glad to hear everything is working now. Thanks for sharing your solution.