xref: /aosp_15_r20/tools/treble/build/sandbox/rbe_http_proxy.conf (revision 105f628577ac4ba0e277a494fbb614ed8c12a994)
1*105f6285SAndroid Build Coastguard Worker# Copyright 2020 Google LLC
2*105f6285SAndroid Build Coastguard Worker#
3*105f6285SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*105f6285SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*105f6285SAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*105f6285SAndroid Build Coastguard Worker#
7*105f6285SAndroid Build Coastguard Worker#     https://www.apache.org/licenses/LICENSE-2.0
8*105f6285SAndroid Build Coastguard Worker#
9*105f6285SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*105f6285SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*105f6285SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*105f6285SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*105f6285SAndroid Build Coastguard Worker# limitations under the License.
14*105f6285SAndroid Build Coastguard Worker
15*105f6285SAndroid Build Coastguard Worker# IP to listen on.
16*105f6285SAndroid Build Coastguard WorkerListen 10.1.2.1
17*105f6285SAndroid Build Coastguard Worker
18*105f6285SAndroid Build Coastguard Worker# IP on which external connections are created.
19*105f6285SAndroid Build Coastguard WorkerBind 10.1.3.2
20*105f6285SAndroid Build Coastguard Worker
21*105f6285SAndroid Build Coastguard Worker# Allow only requests from this IP.
22*105f6285SAndroid Build Coastguard WorkerAllow 127.0.0.1
23*105f6285SAndroid Build Coastguard WorkerAllow 10.1.1.1
24*105f6285SAndroid Build Coastguard Worker
25*105f6285SAndroid Build Coastguard Worker# Allow only requests on these ports.
26*105f6285SAndroid Build Coastguard WorkerConnectPort 443
27*105f6285SAndroid Build Coastguard WorkerConnectPort 80
28*105f6285SAndroid Build Coastguard Worker
29*105f6285SAndroid Build Coastguard Worker# Allow these many parallel connections and underlying server connections.
30*105f6285SAndroid Build Coastguard WorkerMaxClients 10000
31*105f6285SAndroid Build Coastguard WorkerStartServers 10
32*105f6285SAndroid Build Coastguard WorkerMinSpareServers 10
33*105f6285SAndroid Build Coastguard Worker
34*105f6285SAndroid Build Coastguard Worker# Deny requests that don't match the domain allowlist defined below.
35*105f6285SAndroid Build Coastguard WorkerFilterDefaultDeny Yes
36*105f6285SAndroid Build Coastguard Worker
37*105f6285SAndroid Build Coastguard Worker# Domain allowslist file, generated in code.
38*105f6285SAndroid Build Coastguard WorkerFilter "/tmp/rbe_allowlist.txt"
39*105f6285SAndroid Build Coastguard Worker
40*105f6285SAndroid Build Coastguard Worker# Port to listen on. To be added by rbe.py.
41