gunicorn has an option --max-requests to restart every X requests but unless you have unfixable memory leaks there is no reason to do this.
Nginx can't directly run WSGI applications, you can do it with Nginx Unit which also never restarts processes.