feat: implement user authentication and license management system
- Added schema for users, licenses, and license hostnames in the database. - Created storage utility for reading and writing JSON files. - Developed user service for user registration, authentication, and retrieval. - Implemented authentication middleware to protect routes. - Built LicenseCard component to display license details. - Created SiteNav component for navigation with user authentication status. - Established AuthContext for managing authentication state and actions. - Developed Home page to display available plugins. - Created LicenseManager page for managing licenses with forms for creation and verification. - Implemented PluginDetail page to show detailed information about a specific plugin. - Added utility functions for date formatting.
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
services:
|
||||
siti-plugin-repo:
|
||||
image: siti-plugin-repo:latest
|
||||
build: .
|
||||
image: siti-plugin-repo:local
|
||||
build:
|
||||
context: .
|
||||
pull_policy: never
|
||||
container_name: siti-plugin-repo
|
||||
ports:
|
||||
- "${HOST_PORT:-8080}:${PORT:-3001}"
|
||||
environment:
|
||||
PORT: "${PORT:-3001}"
|
||||
CACHE_TTL_MS: "${CACHE_TTL_MS:-600000}"
|
||||
DB_HOST: "${DB_HOST:-127.0.0.1}"
|
||||
DB_PORT: "${DB_PORT:-3306}"
|
||||
DB_USER: "${DB_USER:-sitiapp}"
|
||||
DB_PASSWORD: "${DB_PASSWORD:-sitiapp}"
|
||||
DB_NAME: "${DB_NAME:-siti_plugin_repo}"
|
||||
JWT_SECRET: "${JWT_SECRET:-change-me}"
|
||||
JWT_EXPIRES_IN: "${JWT_EXPIRES_IN:-7d}"
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user