*: add theme based frontend configuration
This PR reworks the web layout so static files can be provided and a "themes" directory to allow a certain degree of control over logos, styles, etc. This PR does NOT add general support for frontend customization, only enough to allow us to start exploring theming internally. The dex binary also must now be run from the root directory since templates are no longer "compiled into" the binary. The docker image has been updated with frontend assets.
This commit is contained in:
@@ -30,7 +30,7 @@ type Config struct {
|
||||
GRPC GRPC `json:"grpc"`
|
||||
Expiry Expiry `json:"expiry"`
|
||||
|
||||
Templates server.TemplateConfig `json:"templates"`
|
||||
Frontend server.WebConfig `json:"frontend"`
|
||||
|
||||
// StaticClients cause the server to use this list of clients rather than
|
||||
// querying the storage. Write operations, like creating a client, will fail.
|
||||
|
@@ -151,7 +151,7 @@ func serve(cmd *cobra.Command, args []string) error {
|
||||
Issuer: c.Issuer,
|
||||
Connectors: connectors,
|
||||
Storage: s,
|
||||
TemplateConfig: c.Templates,
|
||||
Web: c.Frontend,
|
||||
EnablePasswordDB: c.EnablePasswordDB,
|
||||
}
|
||||
if c.Expiry.SigningKeys != "" {
|
||||
|
Reference in New Issue
Block a user