Skip to content

Commit

Permalink
k8s の方も theme 変更
Browse files Browse the repository at this point in the history
  • Loading branch information
pirosiki197 committed Jan 18, 2025
1 parent eb25629 commit dae16c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .local-dev/config/ns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ components:
url: http://sablier.sablier.svc.cluster.local
sessionDuration: 5m
dynamic:
theme: ghost
theme: neoshowcase
blocking:
timeout: 1m
tls:
Expand Down
7 changes: 6 additions & 1 deletion cmd/auth-dev/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ type Server struct {
func NewServer(header string, port int, user string) *Server {
e := echo.New()
e.Any("/*", func(c echo.Context) error {
c.Response().Header().Set(header, user)
username := c.Request().Header.Get("X-Auth-User")
if username != "" {
c.Response().Header().Set(header, username)
} else {
c.Response().Header().Set(header, user)
}
return c.NoContent(http.StatusOK)
})
return &Server{e: e, port: port}
Expand Down

0 comments on commit dae16c7

Please sign in to comment.