Skip to content

Commit e6258cd

Browse files
committed
chore: Removes legacy /console location from nginx configuration
* The /console location was added as access to the console in Openshift 3. This is no longer applicable to OCP 4 and access is provided using a json config property or query in the OAuth plugin.
1 parent 1e645cd commit e6258cd

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

docker/nginx-gateway.conf.template

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -248,29 +248,4 @@ server {
248248
# Do not foward authorization header
249249
proxy_set_header Authorization "";
250250
}
251-
252-
# Get the OpenShift console URL
253-
location = /console {
254-
proxy_pass https://kubernetes.default/;
255-
error_page 302 = @console_redirect;
256-
proxy_intercept_errors on;
257-
}
258-
259-
location @console_redirect {
260-
add_header Location $upstream_http_location always;
261-
262-
# Prevent click jacking attacks
263-
# Note: must be re-declared since other headers have been added
264-
add_header X-Frame-Options "SAMEORIGIN";
265-
266-
# Ensure only https is used for this server
267-
# Note: must be re-declared since other headers have been added
268-
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
269-
270-
# Govern what content can be loaded by the server and from where
271-
# Click jacking prevention to be used in addition to X-Frame-Options
272-
add_header Content-Security-Policy "default-src 'self'; frame-ancestors 'self'; form-action 'self'; ";
273-
274-
return 200;
275-
}
276251
}

0 commit comments

Comments
 (0)