opnsense_nginx_upstream_server (Resource)

Manage an OPNsense Nginx upstream server entry.

Example Usage

resource "opnsense_nginx_upstream_server" "example" {
  description = "tf-upstream-server"
  server      = "10.0.0.10"
  port        = "8080"
  priority    = "1"
}

Schema

Required

  • port (String) Target server port.
  • server (String) Target server hostname or IP address.

Optional

  • description (String) Description for the upstream server entry.
  • fail_timeout (String) Time in seconds after which a failed server is retried.
  • max_conns (String) Maximum concurrent connections to this upstream server.
  • max_fails (String) Maximum number of failed attempts before marking server as unavailable.
  • no_use (String) Advanced upstream server mode (down, backup, or unset).
  • priority (String) Priority value influencing load balancing weight.

Read-Only

  • id (String) The ID of this resource.