Hey If you are running on a VM in AWS its important to do a few things,

Best would be to set up a webserver or loadbalancer to proxy and do SSL termination to your fusionauth instance.

The webserver would run on port 80 and 443, All non SSL requests would need to be redirected to 443. Then you let the webserver proxy and forward all headers to your fusionauth instance on the port where you have fusionauth running.

As for development mode, you can set this with an environment variable on the server check https://fusionauth.io/docs/v1/tech/installation-guide/fusionauth-app/ out for more info on this.

Hope it helps and cheers!