How to make nginx for a service on a different domain?

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!