Tip

In this senario we use nginx as a reverse proxy

Installation

For nginx installation we should use this command

salt target state.sls nginx

The main directory for this section is here

ServerBlock

we get list of sites that have been configured in pillar file and generate some server block for them.

The path of pillar file is here