Skip to content

🥚 a server to host aether

Notifications You must be signed in to change notification settings

lonersoft/aether-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aether-server

🥚 a server to host aether

A simple Node.js web server that exposes environment variables as JSON.

Setup

  1. Install dependencies:
npm install
  1. Create a .env file from the example:
cp .env.example .env
  1. Edit .env and set your environment variables:
DISCORD_LINK=https://discord.gg/your-invite-link

Usage

Start the server:

npm start

The server will run on port 3000 (or the PORT environment variable if set).

Endpoints

  • GET / - Returns all configured environment variables as JSON (simple format)
  • GET /metadata - Returns environment variables with full metadata (description, rules, defaults, etc.)
  • GET /validate - Validates all environment variables against their rules
  • GET /health - Health check endpoint

Environment Variables

All environment variables include Laravel-style validation rules:

Variable Description Rules Default
DISCORD_LINK Your Discord Server Invite Code nullable|string ""
EMAIL Your support email nullable|string ""
HOSTING_NAME Your hosting name (required for forced MOTD) required|string "aether"
ENABLE_FORCED_MOTD Enable Forced MOTD feature required|boolean "0"
OPTIMIZE_SERVER Enable server optimization (ADMIN ONLY) required|boolean "0"
ENABLE_RULES Enable built-in rules (ADMIN ONLY) required|boolean "0"
MCJARS_API_KEY Your MCJars API Key (ADMIN ONLY) nullable|string|size:64 ""
AETHER_VERSION Aether version (DO NOT MODIFY) required|string "2.1.0"
DISABLE_UPDATES Disable update checker (NOT RECOMMENDED) required|boolean "0"

Validation Rules

The server uses Laravel-style validation rules:

  • required - Field must have a value
  • nullable - Field can be empty or null
  • string - Field must be a string
  • boolean - Field must be a boolean (0, 1, true, or false)
  • size:X - Field must be exactly X characters long

About

🥚 a server to host aether

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published