You can also just comment out the next line:
include /etc/nginx/conf.d/*.conf;
like so:
# include /etc/nginx/conf.d/*.conf;
inside your nginx.conf file. (or just delete the line completely)
The only file inside /etc/nginx/conf.d/ folder is the stream.conf file.
I think this is better because there are some custom values added in the nginx.conf that are gone in the nginx.conf.sample file.
An alternative is going into the console of the Swag Container and do the following:
ls -al /etc/nginx/conf.d/ /etc/nginx/stream.d/
mv -v /etc/nginx/conf.d/stream.conf /etc/nginx/stream.d/
Source: