Some fixes for running in local cluster#2
Conversation
- adds isLocalHost method to WbstackMagnusOauth
To make this work locally it needs wbstack/magnustools#2
|
The best way I've found to try this out is to apply the parent helmfile change then
|
addshore
left a comment
There was a problem hiding this comment.
This looks like quite a nice minimal change at this point, and only for local leaving prod as it is for now, which is probably fine for this low traffic path?
Though we might want to revisit in the future.
|
|
||
| class WbstackMagnusOauth { | ||
|
|
||
| public const platformIngressHostAndPort = "platform-nginx.default.svc.cluster.local:8080"; |
There was a problem hiding this comment.
This should ideally come from an environment variable rather than be hardcoded.
Probably even if it is only used locally at this point (just spotted that below)
This sets the host headers and makes localhost requests use the platform-nginx