Skip to content

iiiidev/DeployZ

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeployZ

Live Preview of DeployZ

You can view the live preview of this site at:

DOCS

Hosted on WispByte or Vercel (fully supported) still beta feature

What is Live Reload?

LIVE RELOAD automatically refreshes your browser when you make changes to files in the webroot directory. This helps you see updates instantly without manually reloading the page. (YOU CAN DISABLE/ENABLE THIS FEATURE VIA config.json KEEP IN MIND THIS WONT WORK ON THE PORT)

Per-Domain Pages (BETA, MIGHT INCLUDE SOME ISSUES WHILE USING IT)

You can show a different HTML file for each domain using the domains section in config.json.

How to add domains (BETA, MIGHT INCLUDE SOME ISSUES WHILE USING IT)

To add or remove domains, edit the domains section in config.json.

File Blocking and Logging

Block specific files from public access and log requests.

  • Block Files: Set blockFeature: true and add patterns to blockedFiles array in config.json. CSS files cannot be blocked.
  • Logs: Enable logsEnabled for blocked access logs, requestLogsEnabled for all request logs. Logs saved to logs/ directory.

Debug Logging (NEW)

Enhanced debug logging with automatic log file creation (NO NEED TO CREATE ONE).

  • Enable Debug Logs: Set debugLogsEnabled: true in config.json
  • Log Levels: Set debugLogLevel to "error", "warn", "info", or "debug" (default: "info")
  • Features:
    • Automatic log file creation in logs/debug.log
    • Structured logging with JSON data for objects

HTTP Redirects (NEW)

Redirect domains to other URLs(DOMAINS) with automatic HTTP 301 redirects.

  • CONFIGURE REDIRECTS: Add entries to the redirects section in config.json:
    {
      "redirects": {
        "old-domain.com": "https://new-domain.com",
        "legacy.example.com": "https://example.com"
      }
    }
  • Features:
    • Automatic HTTP 301 (permanent redirect) responses
    • Supports both HTTP and HTTPS redirect URLs
    • Logged in requests.logs for tracking

Auto-HTTPS Feature (NEW)

DeployZ now includes automatic HTTPS support for local development with self-signed certificates.

  • Enable HTTPS: Set autoHttps: true in config.json (default: true)
  • Disable HTTPS: Set autoHttps: false to use HTTP only
  • Certificate Generation: Self-signed certificates are automatically generated in certs/ directory
  • Browser Warning: Accept the security warning in your browser when using HTTPS locally

Usage

  • Place HTML files in the webroot directory
  • Run index.js from Node.js using console command --> npm start ^ npm run dev
  • Add dependencies to package.json

Customizing Your Site

The current webroot/ directory contains a customized DeployZ website. You can:

  1. Replace the entire content: Delete everything in webroot/ and add your own HTML, CSS, JS, and other static files
  2. Keep the structure: Modify the existing files to match your needs
  3. Use as template: The current setup includes a professional landing page with theme switching

Note: The current website is specifically designed for DeployZ's branding and features. When replacing content, ensure your custom site works with the existing server configuration.

Commands

  • Start server:

     npm start
  • (Optional) "If" you "add" a dev script to package.json, run:

     npm run dev

Support

Our Discord

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 44.9%
  • HTML 35.8%
  • JavaScript 19.3%