9 The Ceph Object Gateway supports two embedded HTTP frontend libraries
10 that can be configured with ``rgw_frontends``. See `Config Reference`_
11 for details about the syntax.
16 .. versionadded:: Mimic
18 The ``beast`` frontend uses the Boost.Beast library for HTTP parsing
19 and the Boost.Asio library for asynchronous network i/o.
24 ``port`` and ``ssl_port``
26 :Description: Sets the ipv4 & ipv6 listening port number. Can be specified multiple
27 times as in ``port=80 port=8000``.
32 ``endpoint`` and ``ssl_endpoint``
34 :Description: Sets the listening address in the form ``address[:port]``, where
35 the address is an IPv4 address string in dotted decimal form, or
36 an IPv6 address in hexadecimal notation surrounded by square
37 brackets. Specifying a IPv6 endpoint would listen to v6 only. The
38 optional port defaults to 80 for ``endpoint`` and 443 for
39 ``ssl_endpoint``. Can be specified multiple times as in
40 ``endpoint=[::1] endpoint=192.168.0.100:8000``.
48 :Description: Path to the SSL certificate file used for SSL-enabled endpoints.
49 If path is prefixed with ``config://``, the certificate will be
50 pulled from the ceph monitor ``config-key`` database.
58 :Description: Optional path to the private key file used for SSL-enabled
59 endpoints. If one is not given, the ``ssl_certificate`` file
60 is used as the private key.
61 If path is prefixed with ``config://``, the certificate will be
62 pulled from the ceph monitor ``config-key`` database.
69 :Description: If set the socket option will disable Nagle's algorithm on
70 the connection which means that packets will be sent as soon
71 as possible instead of waiting for a full buffer or timeout to occur.
73 ``1`` Disable Nagel's algorithm for all sockets.
75 ``0`` Keep the default: Nagel's algorithm enabled.
77 :Type: Integer (0 or 1)
80 ``max_connection_backlog``
82 :Description: Optional value to define the maximum size for the queue of
83 connections waiting to be accepted. If not configured, the value
84 from ``boost::asio::socket_base::max_connections`` will be used.
89 ``request_timeout_ms``
91 :Description: The amount of time in milliseconds that Beast will wait
92 for more incoming data or outgoing data before giving up.
93 Setting this value to 0 will disable timeout.
102 .. versionadded:: Firefly
104 The ``civetweb`` frontend uses the Civetweb HTTP library, which is a
113 :Description: Sets the listening port number. For SSL-enabled ports, add an
114 ``s`` suffix like ``443s``. To bind a specific IPv4 or IPv6
115 address, use the form ``address:port``. Multiple endpoints
116 can either be separated by ``+`` as in ``127.0.0.1:8000+443s``,
117 or by providing multiple options as in ``port=8000 port=443s``.
125 :Description: Sets the number of threads spawned by Civetweb to handle
126 incoming HTTP connections. This effectively limits the number
127 of concurrent connections that the frontend can service.
130 :Default: ``rgw_thread_pool_size``
133 ``request_timeout_ms``
135 :Description: The amount of time in milliseconds that Civetweb will wait
136 for more incoming data before giving up.
144 :Description: Path to the SSL certificate file used for SSL-enabled ports.
151 :Description: Path to a file for access logs. Either full path, or relative
152 to the current working directory. If absent (default), then
153 accesses are not logged.
161 :Description: Path to a file for error logs. Either full path, or relative
162 to the current working directory. If absent (default), then
163 errors are not logged.
169 The following is an example of the ``/etc/ceph/ceph.conf`` file with some of these options set: ::
171 [client.rgw.gateway-node1]
172 rgw_frontends = civetweb request_timeout_ms=30000 error_log_file=/var/log/radosgw/civetweb.error.log access_log_file=/var/log/radosgw/civetweb.access.log
174 A complete list of supported options can be found in the `Civetweb User Manual`_.
180 Some frontend options are generic and supported by all frontends:
184 :Description: A prefix string that is inserted into the URI of all
185 requests. For example, a swift-only frontend could supply
186 a uri prefix of ``/swift``.
192 .. _Civetweb User Manual: https://civetweb.github.io/civetweb/UserManual.html
193 .. _Config Reference: ../config-ref