End of Sale Notice:
F5 NGINX is announcing the End of Sale (EoS) for NGINX Controller API Management Module, effective January 1, 2024.
F5 maintains generous lifecycle policies that allow customers to continue support and receive product updates. Existing NGINX Controller API- Management customers can continue to use the product past the EoS date. License renewals are not available after September 30, 2024.
See our End of Sale announcement for more details.
End of Sale Notice:
F5 NGINX is announcing the End of Sale (EoS) for NGINX Controller Application Delivery Module, effective January 1, 2024.
F5 maintains generous lifecycle policies that allow customers to continue support and receive product updates. Existing NGINX Controller Application Delivery customers can continue to use the product past the EoS date. License renewals are not available after September 30, 2024.
See our End of Sale announcement for more details.
Manage Apps & Components
Create, view, and edit Apps and Components.
Overview
Follow the steps in this topic to learn how to create and manage Apps and App Components.
Tip:
You can also use the F5 NGINX Controller API to create Apps and Components. See the NGINX Controller API Reference for details.
Before You Begin
You will need to select an Environment and Gateway – or create new Environment and Gateway resources – when adding a new App.
Note:
If you do not have permission to create these resources and none are available to select, contact your system administrator.
Create an App
To create an App:
- Open the NGINX Controller user interface and log in.
- Select the NGINX Controller menu icon, then select Services.
- On the Services menu, select Apps.
- On the Apps menu, select Create App.
- On the Create App page, provide the following information:
- Name
- Environment
- Description (Optional)
- Display Name (Optional)
- Tags (Optional)
- Select Submit.
Create a Component
To create a Component:
-
Open the NGINX Controller user interface and log in.
-
Select the NGINX Controller menu icon, then select Services.
-
On the Services menu, select Apps.
-
On the Apps menu, in the Recent Apps section, select the name of the App that you want to add the Component to.
-
On the Overview page for your App, select Create Component.
-
Then, complete each of the configuration sections as needed:
-
When ready, review the API Spec and then select Submit to create the Component.
Configuration Options
General Configuration
On the Create App Component Configuration page:
-
Select the App Component Type:
- Web
- TCP/UDP
-
Provide the name for your Component.
-
(Optional) Provide a Display Name.
-
(Optional) Provide a Description.
-
(Optional) Add any desired tags.
-
(Optional) Select a Gateway Ref or select Create Gateway Ref to create a new Gateway.
-
Select Next.
URIs
A Component definition must contain one or more URIs.
Web Component URIs can be either of the following:
- a complete URI that follows the format
<schema://host>[:port][/path]
, or - a relative path that follows the format
</path>[/...]
.
Relative paths inherit the host URI configured for the Gateway associated with the Component. The host and relative path(s) defined for a Component take precedence over the host defined in the associated Gateway.
Example Web URI definitions:
http://www.f5.com:8080/sales
http://*.f5.com:5050/test
/images
/*.jpg
/locations/us/wa*
TCP/UDP URIs must be a complete URI that follows the format <tcp|udp|tcp+tls://*|IP:port|portRange>
.
TCP+TLS URIs can include TLS information.
Example TCP/UDP URI definitions:
tcp://192.168.1.1:12345
tcp+tls://192.168.1.1:12346
tcp://192.168.1.1:12345-12350
tcp://*:12345
udp://192.168.1.1:12345
udp://*:12345
On the Create App Component URIs page:
-
Define the URIs:
-
Select Add URI.
-
In the URI box, type the URI for the Component.
-
(Optional) Select a Match Method (applicable only to Web Components).
-
(Optional) Select Customize for this URI to add custom TLS Settings.
Note:
TLS Settings can be inherited from the Gateway, or customized at the Component level. Enable this option if you want the Component to use a different cert than that used by the Gateway.
-
-
(Optional) Define the Shared TLS Settings.
- To use a cert that is already associated with the Gateway, select it from the list.
- To add a new shared cert, select Create New.
-
Select Next.
Workload Groups
On the Create App Component Workload Groups page:
-
Provide a Workload Group Name.
-
(Optional) Select a Location.
The location determines which instances or instance groups the workload group is applied to. If any workload group specifies a location, they all must specify a location. Note: If the associated gateway uses instance groups, the location should refer to the instance group location, not the location(s) of the individual instances that make up that group.
See Also:
Refer to the Manage Locations topic for more information. -
Define the backend workload URIs.
-
(Optional) Define the DNS Server.
-
(Optional) Select the Load Balancing Method. The default value is “Round Robin”.
See Also:
Refer to the NGINX Plus Admin Guide for more information about the available options. -
(Optional) Select the Session Persistence Type (applicable only to Web Components).
-
(Optional) Select the Desired Proxy Settings (applicable only to Web Components).
Tip:
Hover your pointer over the info icon for each setting to learn about the expected values and requirements. -
Select Next.
Ingress
On the Create App Component Ingress page:
Note:
The following settings are applicable only to Web components.
-
(Optional) Select the supported HTTP methods.
-
(Optional) Set the desired Client Max Body Size.
See Also:
Refer to thengx_http_core_module
docs for more information about these options. -
Select Next.
Backend
On the Create App Component Backend page:
Note:
The following settings are applicable only to Web components.
-
(Optional) Enable NTLM authentication to allow proxying requests with NT LAN Manager (NTLM) Authentication.
-
(Optional) Specify the persistent state.
-
(Optional) Set the HTTP protocol version for proxying.
-
(Optional) Specify the Keep Alive settings:
- Connections: Set the maximum number of idle keepalive connections to upstream servers that are preserved in the cache of each worker process. When this number is exceeded, the least recently used connections are closed.
- Requests per Connection: Set the maximum number of requests that can be served through one keepalive connection. After the maximum number of requests is made, the connection is closed.
- Idle Timeout box: Set a timeout during which an idle keepalive connection to an upstream server will stay open.
-
Select Next.
Monitoring
On the Create App Component Monitoring page:
-
(Optional) Enable Health Monitoring and define the desired Monitoring Request and Response. Health Monitoring is disabled by default.
-
(Optional) Enable Workload Health Events. Workload Health Events are disabled by default.
-
(Optional) Specify the URI to use in health check requests (applicable only to Web Components). The default is
/
. For TCP/UDP Components, specify the Send string. -
(Optional) Specify the port to use when connecting to a server to perform a health check. The server port is used by default.
-
(Optional) Set the interval to wait between two consecutive health checks. The default is 5 seconds.
-
(Optional) Specify the number of consecutive passed health checks that must occur for a server to be considered healthy. The default is 1.
-
(Optional) Specify the number of consecutive failed health checks that must occur for a server to be considered unhealthy. The default is 1.
-
(Optional) Specify the default state for the server. The default state is
HEALTHY
. -
(Optional) Specify the starting HTTP status code to match against (applicable only to Web components).
-
(Optional) Specify the ending HTTP status code to match against (applicable only to Web components).
-
(Optional) Select whether a response should pass in order for the health check to pass (applicable only to Web components). By default, the response should have status code
2xx
or3xx
. -
Select Next.
See Also:
Refer to thengx_http_upstream_hc_module
docs for more information about these options.
Errors and Logs
On the Create App Component Logs page:
-
(Optional) Select the logs to enable:
- Error Log
- Access Log
-
(Optional) Specify the log format to use.
-
Select Next.
See Also:
Refer to thengx_http_log_module
docs for more information about these options.
Programmability
On the Create App Component Programmability page:
Note:
The following settings are applicable only to Web components.
-
(Optional) Select Add URI Redirects and define the desired redirect condition(s).
-
(Optional) Select Add URI Rewrite and define the desired rewrite pattern(s).
-
(Optional) Select Add Request Header Modification and define how to modify the request header.
-
(Optional) Select Add Response Header Modification and define how to modify the response header.
-
Select Next.
See Also:
Refer to thengx_http_rewrite_module
docs for more information about these options.
Caching
Note:
Introduced in NGINX Controller App Delivery module v3.22.
On the Create App Component Caching page:
-
Select the Enable Caching toggle to turn on caching.
-
Define the Split Config settings as appropriate for your component.
-
PERCENTAGE – Select if you want to split the cache across two or more disk stores and assign a percentage of the store to each location. The key field is not required for this option if users set only one disk.
-
STRING – Select if you want to split the cache across two or more disk stores using pattern matching. The key field is required for this option.
-
-
Define the desired settings for the Disk Store:
- Path: This is the location where the cache will be stored; this path must already exist on the data plane.
- Max Size
- Min Free
- In Memory Store Size
- Is Default
- Temp Path (Optional)
- Inactive Time (Optional)
- Directory Level (Optional)
- Trim Policy (Optional)
- Loader Policy (Optional)
- Purger Policy (Optional)
See Also:
Refer to theproxy_cache_path
docs for more information about these options. -
Select Add Disk Store to add another disk store (Optional). This will split the cache across multiple storage locations according to the Split Config criteria you selected.
The following Split Config options will display depending on the criteria you selected:
- Percent Criteria - Required when using “PERCENTAGE” criteria type; must be an integer followed by the
%
symbol; decimals are supported; for example,75%
or50.5%
. - String Criteria - Required when using “STRING” criteria type; Depending upon the
SplitConfig
->Key
it could be a string like~/html
,~*.html$'
or IP based string like10.1.1.2
- Percent Criteria - Required when using “PERCENTAGE” criteria type; must be an integer followed by the
-
Select Next to go to the next page, or Submit to save and submit your changes.
Snippets
Note:
Introduced in NGINX Controller App Delivery module v3.22.
Refer to the About Snippets topic to learn more about Snippets and how they impact the NGINX Controller-generated nginx.conf
file.
On the Create App Component Snippets page:
-
Select the appropriate snippet type:
- Add URI Snippet: Adds NGINX directives to the component’s
server
andlocation
blocks. - Add Workload Group Snippet: Adds NGINX directives to the component’s
upstream
block(s).
- Add URI Snippet: Adds NGINX directives to the component’s
-
Paste or type the desired snippet into the text field.
Snippets should follow the standard
nginx.conf
format. For example, the below URI snippet adds theproxy_set_header
directive to the component’sserver
block.proxy_set_header Host $proxy_host;
Caution:
When you use Snippets to customize your NGINX configuration, your changes are applied to thenginx.conf
file as is. NGINX Controller does not verify that your configuration is valid before applying the snippet. We strongly recommend verifying Snippets in a lab environment before making any changes in production. -
Select Next to preview the REST API call for your component, or Submit to save and submit your changes.
Rate Limiting
On the Create App Component Rate Limiting page:
Note:
The following Rate Limiting settings are applicable only to Web components.
- Enable Rate Limiting and select a Key.
- Select options for Rate and Units.
- (Optional) Select options for Excess Request Processing and Ignore Initial N Requests.
- Select options for Reject Status Code.
- Select Next.
Authentication
On the Create App Component Authentication page:
- Select Add Authentication.
- Select an Identity Provider.
- Select a Credential Location.
- (Optional) Enable Conditional Access.
- Select Next.
Security
On the Create App Component Security page:
Note:
The following Security settings are applicable only to Web components.
- (Optional) Select Enable Web Application Firewall (WAF) to watch for or block suspicious requests or attacks.
- (Optional) Select Monitor Only to allow traffic to pass without being rejected. Security events are still generated and metrics are still collected. Refer to About App Security Analytics for more information.
- (Optional) the signature(s) that you want the WAF to ignore. You can specify multiple signatures as a comma-separated list.
- Select Next.
See Also:
Refer to the Secure Your Apps topics to learn more about WAF and the default protections provided by NGINX App Protect.
Edit or Delete Apps and Components
To view, edit, and delete Apps:
- Open the NGINX Controller user interface and log in.
- Select the NGINX Controller menu icon > Services > Apps.
- On the Apps menu, select Overview. The Apps Overview page is displayed and shows a list of your Apps.
- To view the details for an App, including metrics data and components, select the App name in the list of Apps.
- To edit the App, select Edit Config on the Quick Actions menu.
- To delete the App, select Delete Config on the Quick Actions menu.
To edit or delete a Component:
- Open the NGINX Controller user interface and log in.
- Select the NGINX Controller menu icon > Services > Apps.
- On the Apps menu, select Overview. The Apps Overview page is displayed and shows a list of your Apps.
- Select the App that contains the Component that you want to modify. The App’s Overview page is displayed.
- In the details panel for your App, select Components.
- On the Components page, select the Component that you want to modify.
- To edit the Component, select Edit Config on the Quick Actions menu.
- To delete the Component, select Delete Config on the Quick Actions menu.