Full Website GameHosting With Pterodacty v2.0.2

Full game hosting website integrated with Pterodactyl, PayPal, Discord & Google OAuth.

📦 TovHost — File Structure Overview
Total: ~150 files (excluding images & node_modules)


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 ROOT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
├── index.js — Main server entry point
├── node-monitor.js — Node health monitoring script
├── ecosystem.config.js — PM2 production config
├── package.json — Dependencies & scripts
├── .env — Environment variables (fill before use)
├── .env.example — Template with instructions
└── .gitignore

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 config/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
├── database.js — MySQL connection & pool setup
└── logger.js — Logging configuration

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 middleware/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
├── auth.js — Session authentication middleware
├── activityLog.js — User activity tracking
├── avatarUpload.js — Avatar image upload handler
├── healthCheck.js — Server health check endpoint
├── maintenance.js — Maintenance mode middleware
├── requirePassword.js — Password verification middleware
├── security.js — Helmet, rate limiting, CSRF
└── verify2fa.js — 2FA / TOTP verification

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 routes/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
├── account.js — User account management
├── admin.js — Admin panel API routes
├── authLocal.js — Login / register / logout
├── forgotPassword.js — Password reset flow
├── paypal.js — PayPal payment routes
├── discount.js — Discount & coupon codes
├── referral.js — Referral program
├── wallet.js — Credit wallet system
├── invoice.js — Invoice generation
├── tickets.js — Support ticket system
├── profile.js — User profile
├── nodes.js — Pterodactyl node management
├── manager.js — Server manager dashboard
├── maintenance.js — Maintenance mode routes
├── partners.js — Partners page
├── reviews.js — Reviews system
├── pricing.js — Pricing plans
├── plugins.js — Plugin marketplace
├── fastdl.js — FastDL node management
├── subdomain.js — Subdomain management
├── subusers.js — Sub-users per server
├── session.js — Session handling
├── visitors.js — Visitor analytics
├── bot-proxy.js — Discord bot proxy
├── auto-backup.js — Automatic backup system

├── 📁 servers/
│ ├── servers.js — Main server routes
│ ├── servers-console.js — Live console (WebSocket)
│ ├── servers-features.js — Server features (databases, backups)
│ ├── servers-helpers.js — Shared helper functions
│ ├── servers-management.js — Start/stop/restart/delete
│ ├── servers-orders.js — Server order processing
│ ├── servers-payments.js — Server payment flow
│ └── servers-transfer.js — Server transfer between nodes

├── mc-mods.js — Minecraft mods integration
├── mc-players.js — Minecraft player stats
├── mc-plugins.js — Minecraft plugins (Spigot/Bukkit)
├── mc-properties.js — server.properties editor
├── modrinth-plugins.js — Modrinth plugin browser
├── spiget-plugins.js — Spiget (SpigotMC) plugin browser
├── umod-plugins.js — uMod plugins (Rust, GMod, etc.)
└── ark-mods.js — ARK mods integration

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 services/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
├── pterodactyl.js — Pterodactyl API wrapper
├── pterodactylTransfer.js — Server transfer logic
├── paypal.js — PayPal API integration
├── mailer.js — Email sending (SMTP/Nodemailer)
├── cache.js — In-memory caching
├── dbSetup.js — Auto database table creation
├── errorHandler.js — Global error handler
├── fastdlSync.js — FastDL sync service
├── freeTrialQueue.js — Free trial queue manager
├── freeTrialExpiryWorker.js— Trial expiry background worker
├── gameEnvironments.js — Game environment configs
├── imageDownloader.js — Auto game image downloader
├── invoicePdf.js — PDF invoice generator
├── nodeManager.js — Node status manager
├── pendingActivations.js — Pending server activations
├── pricing.js — Pricing calculation logic
├── sanitize.js — Input sanitization
├── transferWorker.js — Background transfer worker
└── utils.js — Shared utility functions

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 public/ — Frontend Pages
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Public pages:
├── index.html — Homepage
├── games.html — Games listing
├── plans.html — Pricing plans
├── hosting.html — Hosting info
├── about.html — About page
├── partners.html — Partners page
├── reviews.html — Reviews page
├── services.html — Services page
├── referral-program.html — Referral program
├── privacy.html — Privacy policy
├── terms.html — Terms of service
├── refund.html — Refund policy
├── login.html — Login page
├── forgot-password.html — Forgot password
├── reset-password.html — Password reset
├── maintenance.html — Maintenance page

User dashboard:
├── manager.html — Server manager
├── console.html — Live server console
├── profile.html — User profile
├── wallet.html — Credit wallet
├── tickets.html — Support tickets
├── cart.html — Order cart

Admin pages (14 pages):
├── admin.html — Main admin dashboard
├── admin-users.html — User management
├── admin-accounts.html — Account management
├── admin-games.html — Games management
├── admin-nodes.html — Node management
├── admin-plugins.html — Plugin management
├── admin-fastdl-nodes.html — FastDL management
├── admin-discounts.html — Discount codes
├── admin-referral.html — Referral management
├── admin-partners.html — Partners management
├── admin-reviews.html — Reviews management
├── admin-services.html — Services management
├── admin-subdomains.html — Subdomain management
├── admin-tickets.html — Ticket management
├── admin-visitors.html — Visitor analytics
├── admin-hero.html — Homepage hero editor
└── admin-maintenance.html— Maintenance mode control

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 public/assets/css/ — Stylesheets (16 files)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
admin.css, badges.css, buttons.css, cards.css,
components.css, forms.css, global.css, modals.css,
nav.css, responsive.css, toast.css, utilities.css,
variables.css, mobile.css, mobile-enhance.css,
mobile-fixes-v2.css, mobile-nav-fix.css

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 public/assets/js/ — JavaScript (20 files)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
├── admin-common.js
├── admin-all.min.js
├── admin-services-transfer.js
├── api-helper.js
├── console.js
├── discount-banner.js
├── mobile.js
├── nav.js
├── password-setup-modal.js
├── toast.js
├── visitor-tracker.js
└── 📁 services/ (14 JS modules)
services-ark.js, services-backup.js,
services-cancel.js, services-cards.js,
services-core.js, services-databases.js,
services-mods.js, services-panel.js,
services-payment.js, services-reviews.js,
services-spiget.js, services-switch.js,
services-umod.js, services-upgrade.js

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 bot-manager-files/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
├── server.js — Bot manager backend
├── config.js — Bot manager config
├── security.js — Bot manager security
└── public/index.html — Bot manager UI

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 tests/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
└── main.test.js — Test suite


.env

# ============================================================
# TovHost — Environment Variables Template
# ── Server ───────────────────────────────────────────────────
PORT=7777
NODE_ENV=production
BASE_URL=https://yourdomain.com
APP_NAME=TovHost
# ── Session ──────────────────────────────────────────────────
SESSION_SECRET=generate_with_node_-e_console.log(require('crypto').randomBytes(32).toString('hex'))
TOTP_ENCRYPTION_KEY=generate_32_byte_hex_key
# ── Database ─────────────────────────────────────────────────
DB_HOST=localhost
DB_PORT=3306
DB_USER=tovhost_user
DB_PASS=your_database_password
DB_NAME=tovhost_db
DB_POOL_SIZE=25
# ── Redis (Optional) ─────────────────────────────────────────
REDIS_ENABLED=false
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# ── Pterodactyl ──────────────────────────────────────────────
PTERO_API_URL=https://panel.yourdomain.com
PTERO_API_KEY=your_pterodactyl_application_api_key
PTERO_CLIENT_API_KEY=your_pterodactyl_client_api_key
PTERO_ADMIN_CLIENT_KEY=your_admin_client_api_key
# ── PayPal ───────────────────────────────────────────────────
# Get credentials from: https://developer.paypal.com/dashboard/applications/live
PAYPAL_CLIENT_ID=your_paypal_client_id
PAYPAL_CLIENT_SECRET=your_paypal_client_secret
PAYPAL_MODE=live
# Webhook ID from: PayPal Dashboard → Webhooks → Your webhook
PAYPAL_WEBHOOK_ID=your_paypal_webhook_id
# ── Stripe (card payments) ───────────────────────────────────
# Keys from: https://dashboard.stripe.com/apikeys (use test keys first!)
STRIPE_SECRET_KEY=sk_live_xxx
STRIPE_PUBLISHABLE_KEY=pk_live_xxx
# Webhook signing secret from: Stripe Dashboard → Developers → Webhooks
# Endpoint URL to add there: https://YOUR_DOMAIN/api/stripe/webhook (event: checkout.session.completed)
STRIPE_WEBHOOK_SECRET=whsec_xxx
# Optional, defaults to usd
STRIPE_CURRENCY=usd
# ── OAuth: Google ────────────────────────────────────────────
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
# ── OAuth: Discord ───────────────────────────────────────────
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret
# ── Steam ────────────────────────────────────────────────────
STEAM_API_KEY=your_steam_api_key
# ── Email (SMTP) ─────────────────────────────────────────────
SMTP_HOST=smtppro.zoho.com
SMTP_PORT=465
SMTP_USER=[email protected]
SMTP_PASS=jDwH8pJ0tw5r
# ── Admin ────────────────────────────────────────────────────
DEFAULT_ADMIN_EMAIL=[email protected]
# ── Limits ───────────────────────────────────────────────────
MAX_SERVERS_PER_USER=10
MAX_RAM=128
MAX_CPU=32
MAX_STORAGE=1000
# ── Cache TTLs (seconds) ─────────────────────────────────────
EGGS_CACHE_TTL=300
LOCATIONS_CACHE_TTL=60
NODES_STATUS_CACHE_TTL=30
# ── phpMyAdmin ───────────────────────────────────────────────
PMA_URL=https://pma.yourdomain.com
# ── Logging ──────────────────────────────────────────────────
LOG_LEVEL=info
# ── Security ─────────────────────────────────────────────────
CORS_ORIGINS=https://yourdomain.com
RATE_LIMIT_WINDOW_MS=60000
RATE_LIMIT_MAX_REQUESTS=100
# ── FastDL (symlink-based) ───────────────────────────────────
# Path to the SSH private key on the TovHost server. The matching
# public key must be in /root/.ssh/authorized_keys on every node.
FASTDL_SSH_KEY=/root/.ssh/fastdl_rsync
FASTDL_SSH_USER=root
# SSH port that every node uses (must be the same across all nodes).
FASTDL_SSH_PORT=22
# Where the FastDL symlinks live on each node (nginx root).
FASTDL_NODE_FASTDL_DIR=/var/www/fastdl
# Base path of Pterodactyl volumes on each node.
FASTDL_VOLUME_BASE=/var/lib/pterodactyl/volumes
Buy a license now
$79.00
EULA
Standard EULA
Use on any projects you own with attribution
Support
Standard
Includes:
Download the resource
Access new updates
Support from the creator
Support duration
1 year
Share and earn
Refer this resource and earn a 10% commission.
2,627 Views
4 Purchases
6 Downloads
Jun 1, 2026 Published
Jun 11, 2026 Updated
Not yet rated
23.3 MB File size
Open source
  1. No
DRM-free
  1. Yes
Unobfuscated
  1. Yes
Type
  1. Hosting
  1. Business
  1. Minecraft server
Supported languages
  1. English
Creator
Owner
Recommended for you
Secure Discord donation bot with PayPal, live donor leaderboard, and animated progress.
Not yet rated
9 purchases
Automate Discord support with the Advanced Ticket System Bot Open source
Not yet rated
7 purchases
NameImage Bot shows custom images with usernames for each message, enhancing chat engagement.
Not yet rated
1 purchase
A Discord bot for managing payments and invoices with a complete system and logos.
Not yet rated
2 purchases
Discord bot to recover deleted roles and channels
Not yet rated
1 purchase
Share and earn
Refer this resource and earn a 10% commission.
2,627 Views
4 Purchases
6 Downloads
Jun 1, 2026 Published
Jun 11, 2026 Updated
Not yet rated
23.3 MB File size
Open source
  1. No
DRM-free
  1. Yes
Unobfuscated
  1. Yes
Type
  1. Hosting
  1. Business
  1. Minecraft server
Supported languages
  1. English
Creator
Owner
Recommended for you
Secure Discord donation bot with PayPal, live donor leaderboard, and animated progress.
Not yet rated
9 purchases
Automate Discord support with the Advanced Ticket System Bot Open source
Not yet rated
7 purchases
NameImage Bot shows custom images with usernames for each message, enhancing chat engagement.
Not yet rated
1 purchase
A Discord bot for managing payments and invoices with a complete system and logos.
Not yet rated
2 purchases
Discord bot to recover deleted roles and channels
Not yet rated
1 purchase
Top