📂 File Browser

/serversdashboard
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 api/ 🔓 Open
📁 assets/ 🔓 Open
📁 data/ 🔓 Open
📁 lib/ 🔓 Open
📁 serversdashboard/ 🔓 Open

📄 Files

📄 README.md
▶ Open 📄 View Source
🐘 _debug.php
▶ Open 📄 View Source
🐘 auth.php
▶ Open 📄 View Source
🐘 config.php
▶ Open 📄 View Source
🐘 index.php
▶ Open 📄 View Source

📄 Source: config.php

<?php
/**
 * Central configuration for the Minecraft Server Dashboard.
 * Edit the values below to match your setup.
 */

return [
    // Where your Minecraft server folders live.
    'server_root' => '/mnt/1tb_ssd',

    // Name of the systemd service template. If your units are named
    // "mc-<server>.service", leave this as-is. Set to null to disable
    // systemctl entirely and rely on start.sh / stop.sh.
    'systemd_template' => 'mc-%s.service',

    // Fallback scripts inside each server folder.
    'start_script' => 'start.sh',
    'stop_script'  => 'stop.sh',

    // tmux session naming: %s is replaced with the server folder name.
    'tmux_template' => '%s',

    // Console capture: how many lines to grab from tmux / log file.
    'console_lines' => 300,

    // Log file fallback (relative to the server folder).
    'log_file' => 'logs/latest.log',

    // RCON defaults. Per-server overrides can be set in server.properties.
    'rcon' => [
        'host'     => '127.0.0.1',
        'port'     => 25575,
        'password' => '', // leave empty to read from server.properties
        'timeout'  => 3,
    ],

    // LAN bypass. Requests from these subnets skip the login prompt.
    // Use CIDR notation. Add your home network here.
    'lan_subnets' => [
        '127.0.0.1/32',
        '192.168.0.0/16',
        '10.0.0.0/8',
        '172.16.0.0/12',
    ],

    // Session cookie settings.
    'session_name'    => 'mcdash_sid',
    'session_lifetime'=> 60 * 60 * 24 * 7, // 7 days

    // Owner account. Created on first run if users.json is missing.
    'owner_username' => 'ezyalex700',
    'owner_password' => 'Mugur27Server.ezy.friends', // hashed on first run

    // Toggle the entire login system. When false, everything is open.
    // Useful while you're still setting things up privately.
    'auth_enabled' => false,

    // Toggle device binding per account (accounts created with this on
    // will only work from the device that first logged in).
    'device_binding_default' => false,
];
← Back