Copilot commented on code in PR #13693:
URL: https://github.com/apache/trafficserver/pull/13693#discussion_r4170550287


##########
doc/admin-guide/configuration/http2-to-origin.en.rst:
##########
@@ -0,0 +1,198 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+
+.. include:: ../../common.defs
+
+.. _http2-to-origin:
+
+HTTP/2 to Origin
+****************
+
+|TS| can negotiate HTTP/2 with TLS origin servers independently of the
+protocol used by its clients. Several requests can share one origin
+connection, reducing connection setup overhead. Origins that support only
+HTTP/1.1 can continue to use it.
+
+This guide describes reverse proxy connections established by |TS|. A forward
+proxy's CONNECT tunnel is different: the client negotiates TLS and HTTP inside
+the tunnel, so configuring |TS|'s origin ALPN does not select that protocol.
+
+Enable protocol negotiation
+===========================
+
+Configure |TS| to advertise HTTP/2 support to origin peers via ALPN
+negotiation. Set :ts:cv:`proxy.config.ssl.client.alpn_protocols` to offer
+HTTP/2 with HTTP/1.1 as a fallback. To start with one remap rule, use
+:ref:`admin-plugins-conf-remap` in :file:`remap.config`::
+
+   map https://www.example.com/ https://origin.example.com/ 
@plugin=conf_remap.so @pparam=proxy.config.ssl.client.alpn_protocols=h2,http/1.1
+
+To advertise these protocols globally, merge this setting into
+:file:`records.yaml`:

Review Comment:
   `proxy.config.ssl.client.alpn_protocols` is a restart-only record, so 
editing `records.yaml` and running a config reload will not make this global 
ALPN offer take effect. Tell operators to restart for this global path; 
per-remap changes can be described separately.
   
   This issue also appears in the following locations of the same file:
   - line 121
   - line 135
   - line 162



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to