Update compile

Added nginx.conf processing. It will use a version from app's repo if it exists.