How to enable port 80 or 443 for Spring Boot app deployed with BoxFuse

There is a -ports.Name option available when deploying the application with BoxFuse.

Docs: https://cloudcaptain.sh/docs/gradle/run

Example:

boxfuse -ports.http=80 -env=test run myapprepo/myapp:0.1

Verified on local dev environment. For Mac, it should be run as a privileged command via sudo

sudo boxfuse -ports.http=80 run myapprepo/myapp:0.1

To add, works for 443 too.