-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathserver-auto.conf.template
130 lines (129 loc) · 3.94 KB
/
server-auto.conf.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Auto-generated by start_esp
# Copyright (C) Extensible Service Proxy Authors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
service_config_rollout {
% for file_full_path, percentage in service_configs.iteritems():
traffic_percentages {
key: "${file_full_path}"
value: ${percentage}
}
% endfor
% if rollout_id:
rollout_id: "${rollout_id}"
% endif
}
% if management:
service_management_config {
url: "${management}"
% if rollout_fetch_throttle_window_in_s:
fetch_throttle_window_s: ${rollout_fetch_throttle_window_in_s}
% endif
}
% endif
% if service_control_url_override or log_request_headers or log_response_headers or log_jwt_payloads or service_control_network_fail_open:
service_control_config {
%if service_control_url_override:
url_override: "${service_control_url_override}"
% endif
% if log_request_headers:
% for log_request_header in log_request_headers:
log_request_header: "${log_request_header}"
% endfor
% endif
% if log_response_headers:
% for log_response_header in log_response_headers:
log_response_header: "${log_response_header}"
% endfor
% endif
% if log_jwt_payloads:
% for log_jwt_payload in log_jwt_payloads:
log_jwt_payload: "${log_jwt_payload}"
% endfor
% endif
%if service_control_network_fail_open:
network_fail_open: true
% endif
% if enable_api_key_uid_reporting == True:
enable_api_key_uid_reporting: true
% endif
}
% endif
% if jwks_cache_duration_in_s or redirect_authorization_url:
api_authentication_config {
% if jwks_cache_duration_in_s:
jwks_cache_duration_in_s: ${jwks_cache_duration_in_s}
% endif
% if redirect_authorization_url:
redirect_authorization_url: true
% endif
}
% endif
% if client_ip_header:
client_ip_extraction_config {
client_ip_header: "${client_ip_header}"
client_ip_position: ${client_ip_position}
}
% endif
experimental {
disable_log_status: true
% if always_print_primitive_fields:
always_print_primitive_fields: true
% endif
% if preserve_proto_field_names:
preserve_proto_field_names: true
% endif
}
% if disable_cloud_trace_auto_sampling or cloud_trace_url_override:
cloud_tracing_config {
% if cloud_trace_url_override:
url_override: "${cloud_trace_url_override}"
% endif
% if disable_cloud_trace_auto_sampling:
samling_config {
minimum_qps: 0
}
% endif
}
% endif
% if rewrite_rules:
api_service_config {
% for rewrite_rule in rewrite_rules:
rewrite: "${rewrite_rule}"
% endfor
}
% endif
rollout_strategy: "${rollout_strategy}"
% if metadata_attributes:
metadata_attributes {
${metadata_attributes}
}
% endif
% if compute_platform_override:
compute_platform_override: "${compute_platform_override}"
% endif
% if grpc_backend_ssl_credentials:
grpc_backend_ssl_credentials: {
${grpc_backend_ssl_credentials}
}
% endif