28
28
# disable clients from sniffing the media type
29
29
X-Content-Type-Options nosniff
30
30
# Define valid parents that may embed a page
31
- Content-Security-Policy frame-ancestors ' self' https://*. {$GITPOD_DOMAIN} https:// {$GITPOD_DOMAIN}
31
+ Content-Security-Policy " frame-ancestors self https://*.{$GITPOD_DOMAIN} https://{$GITPOD_DOMAIN}"
32
32
# keep referrer data off of HTTP connections
33
33
Referrer-Policy no-referrer-when-downgrade
34
34
# Enable cross-site filter (XSS) and tell browser to block detected attacks
40
40
41
41
(enable_log) {
42
42
log {
43
- output stdout
44
- format json {
45
- time_format rfc3339
43
+ output discard
44
+ format filter {
45
+ wrap json
46
+ fields {
47
+ logger delete
48
+ msg delete
49
+ size delete
50
+ status delete
51
+ resp_headers delete
52
+ request delete
53
+ }
46
54
}
47
55
}
48
56
}
@@ -104,6 +112,7 @@ https://{$GITPOD_DOMAIN} {
104
112
import enable_log
105
113
import remove_server_header
106
114
import ssl_configuration
115
+ import security_headers
107
116
108
117
@workspace_download path /workspace-download*
109
118
handle @workspace_download {
@@ -148,7 +157,6 @@ https://{$GITPOD_DOMAIN} {
148
157
base_domain {$GITPOD_DOMAIN}
149
158
}
150
159
151
- import security_headers
152
160
import compression
153
161
154
162
uri strip_prefix /api
@@ -164,7 +172,6 @@ https://{$GITPOD_DOMAIN} {
164
172
base_domain {$GITPOD_DOMAIN}
165
173
}
166
174
167
- import security_headers
168
175
import compression
169
176
170
177
reverse_proxy server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
@@ -177,7 +184,6 @@ https://{$GITPOD_DOMAIN} {
177
184
178
185
@to_server path /auth/github/callback /auth /auth/* /apps /apps/*
179
186
handle @to_server {
180
- import security_headers
181
187
import compression
182
188
183
189
reverse_proxy server.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3000 {
@@ -187,8 +193,6 @@ https://{$GITPOD_DOMAIN} {
187
193
}
188
194
189
195
handle {
190
- import security_headers
191
-
192
196
reverse_proxy dashboard.{$KUBE_NAMESPACE} .{$KUBE_DOMAIN} :3001 {
193
197
import upstream_headers
194
198
import upstream_connection
0 commit comments