Skip to content

Commit

Permalink
[proxy] Add services.DOMAIN handlers for IDP and Apps ENG-524 (gitpod…
Browse files Browse the repository at this point in the history
…-io#18357)

* [proxy] Add services.DOMAIN handlers for IDP and Apps

* retest

* fix

* fix

* fix

* fix

* fix
  • Loading branch information
easyCZ authored Jul 26, 2023
1 parent ad12877 commit efb573c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions components/proxy/conf/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,23 @@ http:// {
redir https://{host}{uri} permanent
}

# The services directly correlate to Public Services exposed by Dedicated
# When adding new endpoints, please notify Team Engine
https://services.{$GITPOD_DOMAIN} {
import enable_log
import remove_server_header
import ssl_configuration
import security_headers

handle /idp/* {
reverse_proxy public-api-server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:9002
}

handle /apps/* {
reverse_proxy server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000
}
}

https://{$GITPOD_DOMAIN} {
import enable_log
import remove_server_header
Expand Down

0 comments on commit efb573c

Please sign in to comment.