List the current configuration of nginx server [duplicate]
Solution 1:
Use the method linked in Dump nginx config from running process? and you might recover some of it.
After you've done that, take a look at etckeeper (original) (howto) to prevent this kind of thing from happening again.
It's a fairly straightforward way of keeping /etc stored under version control with Git.