This server provides a minimal functionality for logging the data from the iOS app to a server. A simple script needs to be written that combines the saved lines into a proper JSON file.
nginx.conf shows how to configure HTTPS access to this server.