Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed web assets #2054

Merged
merged 5 commits into from
Mar 22, 2021
Merged

Embed web assets #2054

merged 5 commits into from
Mar 22, 2021

Conversation

sagikazarmark
Copy link
Member

@sagikazarmark sagikazarmark commented Mar 22, 2021

Overview

Embed web assets into the Dex binary

What this PR does / why we need it

This change should simplify the distribution of Dex since it won't rely on the filesystem (except the config).

It also simplifies configuration since we don't need a default value anymore.

Fixes #1959

Special notes for your reviewer

Does this PR introduce a user-facing change?

Default web asset location is changed to none (users should remove it from their configuration)
Web assets in the official container image are moved to `/srv/dex/web`

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I thought about adding a warning for users with hardcoded frontend.dir, but it's too complicated to recognize the right case to warn.

server/server.go Outdated Show resolved Hide resolved
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better fallback logic for UI assets
2 participants