ngx_headers_more

https://github.com/openresty/headers-more-nginx-module

https://mogile.web.fc2.com/nginx_wiki/nginx_wiki201510/modules/headers_more.html

現在のコンテキストに add_header が書かれいていない場合に限り、上位コンテキストで記載されている add_header の設定を引き継ぐという説明です。
よって、下位のコンテキストで add_header を宣言する場合には同じ設定を書くか、more_set_headers を使用するとよいと思います。
【Nginx】add_headerを複数箇所に記載すると消える(上書きされる) – すこぶる.net 2018

headers-more-nginx-module でヘッダー情報を変更する - kakakakakku blog 2016

FreeBSD

Update your ports tree and select the appropriate option during the installation of nginx port:

Code:
[ ] HEADERS_MORE 3rd party headers_more module

https://forums.freebsd.org/threads/nginx-headers-more.35577/post-199162

/usr/local/etc/nginx/nginx.conf

load_module "/usr/local/libexec/nginx/ngx_http_headers_more_filter_module.so";

Unlike the standard headers module, this module does not automatically take care of the constraint among the Expires, Cache-Control, and Last-Modified headers. You have to get them right yourself or use the headers module together with this module.

https://github.com/openresty/headers-more-nginx-module#limitations