[Bug 290792] www/nginx: Add more documentation for multiple profiles setup

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 04 Nov 2025 15:14:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290792

            Bug ID: 290792
           Summary: www/nginx: Add more documentation for multiple
                    profiles setup
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: winwasher@gmail.com
          Assignee: joneum@FreeBSD.org
             Flags: maintainer-feedback?(joneum@FreeBSD.org)

Created attachment 265155
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=265155&action=edit
Improvements for the documentation

An update to the documentation needed to setup nginx with multiple profiles.

Install www/nginx and then try to run it with 2 profiles. The script at
/usr/local/nginx/rc.conf contains instructions on how to do it but they omit
nginx_${profile}_configfile rc.conf variables. It is straightforward to
understand you need them from reading the script or from the error message of
the first run, but they should be documented. I suggest adding the following
instructions, also attached as a patch. This is for files/nginx.in

# nginx_{profile}_configfile (str):    Set to "" by default
#                              When using profiles manually define a variable
for
#                              each profile and assign the absolute path of
#                              the configuration file for that profile. For
example
#                              nginx_profiles="assets proxy"
#                             
nginx_assets_configfile="/usr/local/etc/nginx/assets.conf"
#                           
nginx_proxy_configfile="/usr/local/etc/nginx/proxy.conf"

-- 
You are receiving this mail because:
You are the assignee for the bug.