web
Smart Infrastructure Management Center
Description
A centralized management system for VPNs, proxies, bots, and other infrastructure components with a web interface for monitoring, managing, and configuring services.
Technology Stack
- Backend: Laravel
- Frontend: React + Next.js
- Database: PostgreSQL/MySQL
- VPN/Proxy: Xray, Shadowsocks, WireGuard
- Monitoring: Prometheus + Grafana
- CI/CD: Yandex Cloud
- Containerization: Docker
Prerequisites
- Docker and Docker Compose installed
- Yandex Cloud account (or preferred cloud provider)
- Docker Hub account for image storage
Setup Instructions
-
Clone the Repository:
bash git clone https://github.com/yourusername/smart-infra-management.git cd smart-infra-management -
Configure Environment Variables:
- Duplicate
files in.env.example
andbackend/
directories and update with your configurations.frontend/
- Duplicate
-
Build and Run Containers:
bash docker-compose up -d --build -
Access the Applications:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- Grafana: http://localhost:3001
- Prometheus: http://localhost:9090
-
Initial Laravel Setup:
- Enter the backend container: bash docker exec -it backend bash
- Generate application key: bash php artisan key:generate
- Run migrations: bash php artisan migrate
- Enter the backend container:
-
Configure VPN/Proxy Services:
- Update configuration files in
directory with your desired settings and credentials.vpn-proxy/
- Update configuration files in
-
Set Up Monitoring Dashboards:
- Access Grafana and import predefined dashboards or create new ones as per your requirements.
Troubleshooting
-
Containers Not Starting:
- Check logs for each service: bash docker-compose logs service_name
- Check logs for each service:
-
Database Connection Issues:
- Ensure database credentials in
files match the.env
configurations.docker-compose.yml
- Ensure database credentials in
-
Port Conflicts:
- Verify that the ports specified in
are not in use by other applications.docker-compose.yml
- Verify that the ports specified in
-
VPN/Proxy Services Not Responding:
- Check configuration files and ensure the correct ports are open and mapped.
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.