Go to file
2024-06-26 12:33:08 +05:30
.github/workflows Build and push Docker image with Buildx 2023-11-16 23:46:25 +01:00
app Add Notes API 2024-06-20 21:55:43 +08:00
bootstrap V2 (Laravel re-make) 2022-03-06 02:02:12 +11:00
config Added ability to upload own favicon 2023-03-31 11:31:19 +11:00
database Created migration for YABS geekbench 6 values 2023-09-20 22:21:49 +10:00
public fixed some namings of the webfonts 2023-10-05 16:51:42 +02:00
resources Typo 2024-06-26 12:33:08 +05:30
routes Add Notes API 2024-06-20 21:55:43 +08:00
storage Revert "Revert "V2 (Laravel re-make)"" 2022-03-06 02:29:58 +11:00
tests Updated tests 2023-09-24 21:35:34 +10:00
.editorconfig Initial v2 commit 2022-02-18 15:48:32 +11:00
.env.example Initial v2 commit 2022-02-18 15:48:32 +11:00
.gitattributes Added public css and js to .gitattributes 2022-12-02 14:03:07 +11:00
.gitignore Updated gitignore for fonts to be included 2022-12-02 15:02:06 +11:00
.styleci.yml Initial v2 commit 2022-02-18 15:48:32 +11:00
artisan Initial v2 commit 2022-02-18 15:48:32 +11:00
composer.json remove duplicated font-files 2023-09-27 00:07:33 +02:00
Dockerfile Fix run.sh to run setup only once, add Docker example in README, add Workflow to update container 2022-03-14 06:19:11 +00:00
LICENSE Initial commit 2021-01-20 14:35:05 +11:00
package.json Add missing sass loader for mix 2023-09-27 00:11:20 +02:00
phpunit.xml V2 (Laravel re-make) 2022-03-06 02:02:12 +11:00
README.md Update README.md 2024-03-08 23:46:29 +11:00
run.sh Avoid overwriting DB 2022-03-14 06:51:41 +00:00
server.php V2 (Laravel re-make) 2022-03-06 02:02:12 +11:00
tailwind.config.js V2 (Laravel re-make) 2022-03-06 02:02:12 +11:00
webpack.mix.js fixed some namings of the webfonts 2023-10-05 16:51:42 +02:00

My idlers

A self-hosted web app for displaying, organizing and storing information about your servers (VPS/Dedi), shared & reseller hosting, seedboxes, domains, DNS and misc services.

Despite what the name infers this self-hosted web app isn't just for storing idling server information. By using a YABS output you can get disk & network speed values along with GeekBench 5 & 6 scores to do easier comparing and sorting. Of course storing other services e.g. web hosting is possible and supported too with My idlers.

Generic badge Generic badge Generic badge Generic badge

View demo site

Note: Create, Update and Delete are disabled on the demo site.

Project sponsor

Currently seeking a project sponsor

2.3.2 changes (26th September 2023):

  • Added tabs to the homepage for stats and avg summary cards
  • Added Geekbench 6 columns to YABS table
  • Added Geekbench 6 insert from YABS result
  • Updated YABS insert to include Geekbench 5 results also
  • Updated server show page and public show to display Geekbench 6 values
  • Updated tests to pass
  • Updated footer to only have one conditional check for the setting
  • Updated homepage table to be rounded
  • Fixed setting causing a fail with validation
  • Fixed pricing cache not being refreshed
  • Fixed object being accessed instead of array for certain models
  • Removed unused Vue component

Please run the following if updating from an existing install:

composer update
php artisan migrate
php artisan route:cache
php artisan cache:clear

Requires

  • PHP 8.1

Features

  • Add servers
  • Add shared hosting
  • Add domains
  • Auto get IP's from hostname
  • Check up/down status
  • Get YABS data from output
  • Compare 2 servers
  • Save & view YABS output
  • Update YABS disk & network results
  • Next due date system
  • Multi currency compatibility
  • Multi payment-term compatibility
  • Pre-defined operating systems
  • Assign labels
  • Assign server type (KVM, OVZ, LXC & dedi)
  • Easy to edit values
  • Assign notes

Install

  • Run git clone https://github.com/cp6/my-idlers.git into your directory of choice
  • Run composer install
  • Run cp .env.example .env
  • Edit (If needed) MySQL details in .env
  • Run php artisan key:generate
  • Run php artisan make:database my_idlers to create database
  • Run php artisan migrate:fresh --seed to create tables and seed data
  • Run php artisan serve

Updating

If you already have at least version 2.0 installed:

  • Run git clone https://github.com/cp6/my-idlers.git
  • Run composer install
  • Run composer update
  • Run php artisan migrate
  • Run php artisan route:cache
  • Run php artisan cache:clear

Run using Docker

docker run \
  -p 8000:8000\
  -e APP_URL=https://... \
  -e DB_HOST=... \
  -e DB_DATABASE=... \
  -e DB_USERNAME=... \
  -e DB_PASSWORD=... \
  ghcr.io/cp6/my-idlers:latest
docker exec ... php artisan migrate:fresh --seed --force  # Set up database one time

Managed Hosting

Run with a single click on PikaPods.com

PikaPods

Adding a YABS benchmark

yabs.sh now has JSON formatted response and can POST the output directly from calling the script.

With My idlers you can use your API key and the server id to directly POST the benchmark result

https://yourdomain.com/api/yabs/SERVERID/USERAPIKEYISHERE

Example yabs.sh call to POST the result:

curl -sL yabs.sh | bash -s -- -s "https://yourdomain.com/api/yabs/SERVERID/USERAPIKEYISHERE"

TODO

Add Geekbench 6 single and multi-core scores (On dev branch)

API endpoints

For GET requests the header must have Accept: application/json and your API token (found at /account)

Authorization : Bearer API_TOKEN_HERE

All API requests must be appended with api/ e.g mydomain.com/api/servers/gYk8J0a7

GET request:

dns/

dns/{id}

domains/

domains/{id}

servers

servers/{id}

labels/

labels/{id}

locations/

locations/{id}

misc/

misc/{id}

networkSpeeds/

networkSpeeds/{id}

os/

os/{id}

pricing/

pricing/{id}

providers/

providers/{id}

reseller/

reseller/{id}

seedbox/

seedbox/{id}

settings/

shared/

shared/{id}

POST requests

Create a server

/servers

Body content template

{
    "active": 1,
    "show_public": 0,
    "hostname": "test.domain.com",
    "ns1": "ns1",
    "ns2": "ns2",
    "server_type": 1,
    "os_id": 2,
    "provider_id": 10,
    "location_id": 15,
    "ssh_port": 22,
    "bandwidth": 2000,
    "ram": 2024,
    "ram_type": "MB",
    "ram_as_mb": 2024,
    "disk": 30,
    "disk_type": "GB",
    "disk_as_gb": 30,
    "cpu": 2,
    "has_yabs": 0,
    "was_promo": 1,
    "ip1": "127.0.0.1",
    "ip2": null,
    "owned_since": "2022-01-01",
    "currency": "USD",
    "price": 4.00,
    "payment_term": 1,
    "as_usd": 4.00,
    "usd_per_month": 4.00,
    "next_due_date": "2022-02-01"
}

PUT requests

Update a server

/servers/ID

Body content template

{
    "active": 1,
    "show_public": 0,
    "hostname": "test.domain.com",
    "ns1": "ns1",
    "ns2": "ns2",
    "server_type": 1,
    "os_id": 2,
    "provider_id": 10,
    "location_id": 15,
    "ssh_port": 22,
    "bandwidth": 2000,
    "ram": 2024,
    "ram_type": "MB",
    "ram_as_mb": 2024,
    "disk": 30,
    "disk_type": "GB",
    "disk_as_gb": 30,
    "cpu": 2,
    "has_yabs": 0,
    "was_promo": 1,
    "owned_since": "2022-01-01"
}

Update pricing

/pricing/ID

Body content template

{
    "price": 10.50,
    "currency": "USD",
    "term": 1
}

DELETE requests

Delete a server

/servers/ID

Notes

Public viewable listings

If enabled the public viewable table for your server listings is at /servers/public You can configure what you want viewable at /settings

Due date / due soon

This is simply just a reminder. If the homepage is requested (viewed) when a service is over due date it will get reset to plus the term from the old due date.

E.g if the term is a month then the due date gets updated to be 1 month from the old due date.

Supporting YABS commands:

curl -sL yabs.sh | bash

or

curl -sL yabs.sh | bash -s -- -r

Make sure YABS output starts at the first line which is:

# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Logo icons created by Freepik - Flaticon

Screenshots for v2

My idlers screenshot1

My idlers screenshot2

My idlers screenshot3

My idlers screenshot4

My idlers screenshot5

My idlers screenshot6

My idlers screenshot7

My idlers screenshot8