feat: initialize Infra Manager with React, Tailwind CSS, and Inertia.js

- Added main application entry point (app.jsx) and bootstrap file for React setup.
- Created Wiki index page (Index.jsx) for documentation and file management.
- Implemented utility functions for formatting and status handling in utils.js.
- Set up Blade template (app.blade.php) for Inertia.js integration.
- Defined API routes for metrics and terminal access in api.php.
- Established console commands for scheduled tasks in console.php.
- Created web routes for various application features including authentication, hypervisors, containers, cloud accounts, security, backups, and wiki management in web.php.
- Developed setup scripts for Windows (setup.ps1) and Linux (setup.sh) environments.
- Configured Tailwind CSS for styling with custom themes and animations in tailwind.config.js.
- Set up Vite for asset bundling and development server in vite.config.js.
This commit is contained in:
I-Fun
2026-04-07 20:29:32 +07:00
commit c649f055d8
126 changed files with 8122 additions and 0 deletions

69
.env.example Normal file
View File

@@ -0,0 +1,69 @@
APP_NAME="Infra Manager"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_VERSION=1.0.0
APP_URL=http://localhost:8080
APP_PORT=8080
APP_HTTPS_PORT=8443
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
# ─── Database ─────────────────────────────────────────────────
# SQLite (default — ready to use, no setup needed)
DB_CONNECTION=sqlite
DB_DATABASE=/var/www/html/database/database.sqlite
# MySQL (uncomment to switch — run: docker compose --profile mysql up)
# DB_CONNECTION=mysql
# DB_HOST=mysql
# DB_PORT=3306
# DB_DATABASE=infra_manager
# DB_USERNAME=infra_user
# DB_PASSWORD=infra_secret
# ─── Redis ────────────────────────────────────────────────────
REDIS_HOST=redis
REDIS_PASSWORD=infra_redis_secret
REDIS_PORT=6379
# ─── Cache & Queue ────────────────────────────────────────────
CACHE_STORE=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
SESSION_LIFETIME=480
# ─── Mail ─────────────────────────────────────────────────────
MAIL_MAILER=log
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="noreply@infra.local"
MAIL_FROM_NAME="${APP_NAME}"
# ─── Security ─────────────────────────────────────────────────
# Generate with: php artisan key:generate
APP_KEY=
# ─── Docker Config ────────────────────────────────────────────
USER_ID=1000
GROUP_ID=1000
MYSQL_ROOT_PASSWORD=root_secret_change_me
MYSQL_DATABASE=infra_manager
MYSQL_USER=infra_user
MYSQL_PASSWORD=infra_secret_change_me
# ─── LDAP (optional) ─────────────────────────────────────────
LDAP_HOST=
LDAP_PORT=389
LDAP_BASE_DN=
LDAP_USERNAME=
LDAP_PASSWORD=
LDAP_AUTH_ENABLED=false
# ─── Vite ─────────────────────────────────────────────────────
VITE_APP_NAME="${APP_NAME}"