How to properly configure Play Framework 2.1+ and Nginx for Production?

I am attempting to properly set up Play Framework with Nginx as the front-end HTTP server on Amazon AMI.

I am a bit confused by the official documentation set out by Play. Are they suggesting that you run

start -Dhttp.port=9000

and then configure Nginx to reroute to port 9000 in order to properly serve up my app? I feel like having a dedicated user just to run the start command is a waste, isn’t there a better way to do this?

I would really appreciate some basic strategies for best practices for a production Play Framework web app.


Leave a Reply