The server, map and upstream directives can be splitted into different files to be included into the nginx.conf configuration.
We decided to split the reverse proxy configuration from one file to three different files. One is the http configuration and the remaining are the https configuration.