Allow local_mirror to be configurable

 - Use local_mirror in nginx configuration

 - Create local_mirror directory if it is missing