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.
93 .. versionadded:: Firefly
95 The ``civetweb`` frontend uses the Civetweb HTTP library, which is a
104 :Description: Sets the listening port number. For SSL-enabled ports, add an
105 ``s`` suffix like ``443s``. To bind a specific IPv4 or IPv6
106 address, use the form ``address:port``. Multiple endpoints
107 can either be separated by ``+`` as in ``127.0.0.1:8000+443s``,
108 or by providing multiple options as in ``port=8000 port=443s``.
116 :Description: Sets the number of threads spawned by Civetweb to handle
117 incoming HTTP connections. This effectively limits the number
118 of concurrent connections that the frontend can service.
121 :Default: ``rgw_thread_pool_size``
124 ``request_timeout_ms``
126 :Description: The amount of time in milliseconds that Civetweb will wait
127 for more incoming data before giving up.
135 :Description: Path to the SSL certificate file used for SSL-enabled ports.
142 :Description: Path to a file for access logs. Either full path, or relative
143 to the current working directory. If absent (default), then
144 accesses are not logged.
152 :Description: Path to a file for error logs. Either full path, or relative
153 to the current working directory. If absent (default), then
154 errors are not logged.
160 The following is an example of the ``/etc/ceph/ceph.conf`` file with some of these options set: ::
162 [client.rgw.gateway-node1]
163 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
165 A complete list of supported options can be found in the `Civetweb User Manual`_.
171 Some frontend options are generic and supported by all frontends:
175 :Description: A prefix string that is inserted into the URI of all
176 requests. For example, a swift-only frontend could supply
177 a uri prefix of ``/swift``.
183 .. _Civetweb User Manual: https://civetweb.github.io/civetweb/UserManual.html
184 .. _Config Reference: ../config-ref