SF Host Knowledgebase & Docs

System Documentation & Operator Guide

Comprehensive guide for system administration, Proxmox integration, 1-click apps, troubleshooting, and customer operations.

1 Quick Start & System Architecture

SF Host is an automated cloud infrastructure provisioning portal built on Laravel 12 and Proxmox VE API. It supports LXC containers for Linux and KVM Virtual Machines for Windows Server / Custom OS environments.

Customer Workflow

Register / Login → Select Plan → Choose OS & 1-Click Apps → Pay Invoice (bKash/SSL/Wallet) → Auto Provisioning → Email credentials.

Admin Workflow

Manage Users → Add Plans → Sync Proxmox Templates → Configure Network / Public IPs → Monitor Infrastructure & Support Tickets.

2 Proxmox VE Integration & Settings

Configure Proxmox connection variables in your .env file:

PROXMOX_HOST=116.193.xxx.xxx
PROXMOX_PORT=8006
PROXMOX_USER=root
PROXMOX_REALM=pam
PROXMOX_PASSWORD=YourProxmoxPassword
PROXMOX_NODE=cloud
PROXMOX_SSL_VERIFY=false
PROXMOX_STORAGE=local-lvm
Always run php artisan config:cache after modifying your .env file on production!

3 1-Click Apps & Software Add-ons

1-Click Software Add-ons are defined in config/lxc_features.php. Each software definition contains automated non-interactive installation commands executed over SSH during server deployment.

  • WordPress
  • phpMyAdmin
  • PostgreSQL
  • MongoDB
  • Docker & Compose
  • PHP 8.3 / FPM

4 SSH Access & Web VNC Console

Customers can access their server using 3 methods:

  1. SSH Password: Root credentials automatically emailed after provisioning (ssh root@IP).
  2. SSH Public Key: Added under /dashboard/ssh-keys and injected into authorized_keys upon deployment.
  3. Web VNC Console: Direct in-browser terminal console stream available on /dashboard/services/{id}/console.

5 Dedicated Public IP Management

Admins can assign, edit, or remove Static Public IPs from /admin/services/{id}/network.

Mode: Static
IP Address: 116.193.222.xxx
CIDR Subnet: 24
Gateway IP: 116.193.222.1
Bridge: vmbr0

6 Troubleshooting & Issue Resolution

Issue A: Frontend Unstyled or Missing CSS/JS

Cause: A left-over public/hot file exists on the production server making Vite load dev HMR scripts.

Solution: Delete public/hot file on server:

rm -f /var/www/proxcloud/public/hot

Issue B: Background Provisioning Queue Not Processing

Cause: Queue worker daemon stopped.

Solution: Restart Supervisor or queue worker:

php artisan queue:work --sleep=3 --tries=3 --max-time=3600 &

Issue C: Clear System Cache

Run these commands whenever configuration or routes change:

php artisan config:clear
php artisan cache:clear
php artisan route:clear
php artisan view:clear

7 Google Sign-In OAuth Configuration

To enable Google Sign-In, create OAuth 2.0 Credentials in Google Cloud Console and add these keys to your .env:

GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-your-secret-key
GOOGLE_REDIRECT_URI=http://your-domain.com/auth/google/callback