Skip to content

Commit efb573c

Browse files
authored
[proxy] Add services.DOMAIN handlers for IDP and Apps ENG-524 (#18357)
* [proxy] Add services.DOMAIN handlers for IDP and Apps * retest * fix * fix * fix * fix * fix
1 parent ad12877 commit efb573c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

components/proxy/conf/Caddyfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,23 @@ http:// {
172172
redir https://{host}{uri} permanent
173173
}
174174

175+
# The services directly correlate to Public Services exposed by Dedicated
176+
# When adding new endpoints, please notify Team Engine
177+
https://services.{$GITPOD_DOMAIN} {
178+
import enable_log
179+
import remove_server_header
180+
import ssl_configuration
181+
import security_headers
182+
183+
handle /idp/* {
184+
reverse_proxy public-api-server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:9002
185+
}
186+
187+
handle /apps/* {
188+
reverse_proxy server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000
189+
}
190+
}
191+
175192
https://{$GITPOD_DOMAIN} {
176193
import enable_log
177194
import remove_server_header

0 commit comments

Comments
 (0)