feat(ui): 🎉 More ui work
* Implement EventLogsPage for viewing system activity logs with search and filter capabilities. * Create HooksPage for managing webhook configurations with create, edit, and delete functionalities. * Develop LoginPage for user authentication with error handling and loading states. * Add UsersPage for managing system users, including role assignment and status toggling. * Introduce authStore for managing user authentication state and actions. * Define TypeScript types for User, Hook, EventLog, and other entities. * Set up TypeScript configuration for the project. * Configure Vite for development with proxy settings for API calls. * Update dependencies for improved functionality and security.
This commit is contained in:
@@ -26,6 +26,7 @@ type ServerConfig struct {
|
||||
Password string `json:"password,omitempty"`
|
||||
AuthKey string `json:"auth_key,omitempty"`
|
||||
JWTSecret string `json:"jwt_secret,omitempty"` // Secret for JWT signing
|
||||
UIPath string `json:"ui_path,omitempty"` // Filesystem path to built frontend files (default: web/dist)
|
||||
TLS TLSConfig `json:"tls,omitempty"`
|
||||
}
|
||||
|
||||
@@ -158,6 +159,9 @@ func Load(path string) (*Config, error) {
|
||||
if cfg.Server.JWTSecret == "" {
|
||||
cfg.Server.JWTSecret = "change-me-in-production" // Default for development
|
||||
}
|
||||
if cfg.Server.UIPath == "" {
|
||||
cfg.Server.UIPath = "web/dist" // Default filesystem path to built frontend
|
||||
}
|
||||
if cfg.Media.DataPath == "" {
|
||||
cfg.Media.DataPath = "./data/media"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user