Skip to content

Commit

Permalink
V0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastGamer81 committed Jun 22, 2024
1 parent 4deb082 commit 11c01d0
Show file tree
Hide file tree
Showing 54 changed files with 5,405 additions and 3,333 deletions.
3 changes: 3 additions & 0 deletions .astro/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"devToolbar": {
"enabled": false
},
"_variables": {
"lastUpdateCheck": 1719059070055
}
}
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_TYPE=YML # You have to choose YML or TOML, YML is recommended for beginners
683 changes: 663 additions & 20 deletions LICENSE.md

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

<hr>

# KlovitClient V0.5.2
# KlovitClient V0.6.0

All features:
- Resource Management (Use it to create servers, etc)
- Virtual Currency
- Servers (Create, View and Edit Servers)
- Store (buy resources with coins)
- Admin (Set/Add/Remove Coins & Resources)
- Gift (Users can gift extra resources.)
- Payments (Payments via Stripe.)

# Support
Join [KlovitClient's Official Discord Server](https://discord.gg/grrRKuyyyE) to get support on installing and help with errors.
Expand All @@ -18,4 +20,4 @@ Join [KlovitClient's Official Discord Server](https://discord.gg/grrRKuyyyE) to

# [Documentation](https://docs.klovit.tech)
# Notice
All versions older than V0.5.x are now depreciated, please update to KlovitClient V0.5.x.
All versions older than V0.5 are now depreciated, please update to KlovitClient V0.5.
6 changes: 3 additions & 3 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ console.log(chalk.gray(' '));
console.log(
chalk.gray(' ') +
chalk.cyan('[KlovitClient]') +
chalk.white(' You can now access the dashboard at ') +
chalk.underline(config.website.url + '/'),
);
chalk.white(' You can now access the dashboard at the following addresses - '));
console.log(" " + chalk.underline(`http://localhost:${config.website.port}/`));
console.log(" " + chalk.underline(`http://0.0.0.0:${config.website.port}/`));
121 changes: 121 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
version = "0.5.2" # Version of the KlovitClient instance
name = "KlovitClient" # Your Host's name
resource_type = "GB" # This can be either GB or MB, NOTE:- If you have chosen GB then 100% cpu will be 1 thread, if you have chosen MB then 1 thread will be 100% cpu

[website]
secret = "Website secret" # Randomize this as this will be the secret of the website for the session and middleware cookie
url = "http://localhost:8081" # URL of the dashboard
port = "8081" # The port on which this KlovitClient instance will run
description = "The most reliable hosting" # The description for your Hosting
icon = "https://docs.klovit.tech/img/Klovit%20Logo.png" # Logo of your hosting

[pterodactyl]
url = "http://localhost" # Your Pterodactyl Panel URL with "http://" or "https://"
api = "ptla_Hr0TVGzDe3PIgHL11uKtrQtbqflQSW9Cjw3RzaDAK2p" # Your Pterodactyl Panel Admin API Key

[packages]
default = "default"

[packages.list.default]
ram = 10 # Formatted according to "resource_type"
disk = 20
cpu = 2 # NOTE - If you have selected GB as resource_type, then 100% cpu is 1. If you have selected MB as resource_type then 100% cpu is 100
servers = 10

[auth.supabase] # REQUIRED
supabase_url = "https://draddxvigssaaldxaacx.supabase.co" # URL of your SupaBase Project
supabase_anon_key = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRyYWRkeHZpZ3NzYWFsZHhhYWN4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDU5OTc3NzksImV4cCI6MjAyMTU3Mzc3OX0.lZe61O215ZCwcpz513VaRU4N9EWJxTSVhL3Xplw-NqM" # Anon/API Key of your SupaBase Project

[auth.supabase.oauth2.google]
enabled = true

[auth.supabase.oauth2.github]
enabled = true

[auth.supabase.oauth2.discord]
enabled = true

[database] # WE DO NOT RECOMMEND TOUCHING THIS.
type = "sqlite" # Available types are 'sqlite' and 'mysql'

[database.sqlite] # ONLY CONFIGURE IS YOU HAVE DATABASE TYPE AS 'sqlite'
sqlite_db_name = "database.sqlite"

[database.mysql] # ONLY CONFIGURE IS YOU HAVE DATABASE TYPE AS 'mysql'
mysql_db_name = "klovitclient" # Your MYSQL DB name
mysql_db_host = "localhost" # Your MYSQL DB HOST
mysql_db_port = "3306" # Your MYSQL DB PORT
mysql_db_username = "klovitclient" # Your MYSQL Username
mysql_db_password = "password@123" # You MYSQL password

[locations.1] # ID of the location on the pterodactyl panel ( to add more locations, use [locations.2] you just have to increase numbers)
name = "Default Location 1" # Display name for the location

[eggs.klovitegg] # To add more eggs use [eggs.eggname] and for the other options use [eggs.eggname.option.option]
display = "MultiEgg | KlovitEgg" # KlovitClient's identifier of the egg

[eggs.klovitegg.limits.minimum] # The minimum resources a user can use while deploying a server
ram = 1
disk = 1
cpu = 1

[eggs.klovitegg.limits.maximum] # The maximum resources a user can use while deploying a server (uncomment the fields to add limits)
# ram = 2
# disk = 2
# cpu = 2
[eggs.klovitegg.limits.feature] # The limits on the following features
databases = 1
backups = 1
allocations = 1

[eggs.klovitegg.info] # All this information can be found on the Egg's information page.
egg = 16 # ID of the egg
docker_image = "ghcr.io/beastgamer81/klovitegg:latest" # Docker image of the egg
startup = './install.sh"' # Startup command of the egg

[eggs.klovitegg.info.environment] # Environment variables of the egg
NODE_VERSION = "latest"
PMMP_VERSION = "PM5"
NODE_MAIN_FILE = "index.js"

[payments] # Allow transactions on KlovitClient using various payment gateways.
enabled = false

[payments.gateways.stripe] # Allow transactions through Stripe gateway.
enabled = false
key = "stripe key here"
price = "1" # price for 100 coins
currency = "USD" # The currency for payments (Must be in 3 character format)
[gifting] # Allow the gifting of coins and resources.
enabled = false

[coins] # Coins, the virtual currency of the host. Must enable coins if you need the following things - Store, Link shorteners.
enabled = true

[coins.earn] # Earning of coins via various methods
enabled = true # Whether enable earning of coins or not. Coins must be enabled aswell or else the API Endpoints will throw errors

[coins.earn.links.atglinks] # Earning of coins via ATGLinks
api = "785159b542f060cb98b55b27a09b2034df506bff" # Your ATGLinks API Key
amount = "5" # Amount of coins per link
# dailylimit = "500" # Daily limit for users (remove the first "#" to enable this option)
minimumTime = "100" # Minimum time a user has to spend completing the link. (in seconds)

[coins.store] # The cost and per is not intended to used with 0. This is not intended to sell resources for coins. Make sure coins are enabled too, or else the store page and api endpoints will not work.
enabled = false

[coins.store.ram]
cost = 1000 # Cost of the resource in coins
per = 1 # Will be in the format according to "resource_type"

[coins.store.disk]
cost = 1000
per = 1

[coins.store.cpu]
cost = 1000
per = 1

[coins.store.servers]
cost = 100
per = 1
23 changes: 13 additions & 10 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: KlovitClient # Your Host's name
resource_type: 'GB' # This can be either GB or MB, NOTE:- If you have chosen GB then 100% cpu will be 1 thread, if you have chosen MB then 1 thread will be 100% cpu
website:
secret: "Website secret" # Randomize this as this will be the secret of the website for the session and middleware cookie
url: 'https://localhost' # URL of the dashboard
url: 'http://localhost:8081' # URL of the dashboard
port: '8081' # The port on which this KlovitClient instance will run
description: The most reliable hosting # The description for your Hosting
icon: https://docs.klovit.tech/img/Klovit%20Logo.png # Logo of your hosting
Expand All @@ -21,16 +21,16 @@ packages:
servers: 100
auth:
supabase: # REQUIRED
supabase_url: '' # URL of your SupaBase Project
supabase_anon_key: '' # Anon/API Key of your SupaBase Project
supabase_url: 'https://draddxvigssaaldxaacx.supabase.co' # URL of your SupaBase Project
supabase_anon_key: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRyYWRkeHZpZ3NzYWFsZHhhYWN4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDU5OTc3NzksImV4cCI6MjAyMTU3Mzc3OX0.lZe61O215ZCwcpz513VaRU4N9EWJxTSVhL3Xplw-NqM' # Anon/API Key of your SupaBase Project
oauth2:
google:
enabled: false
enabled: true
github:
enabled: false
enabled: true
discord:
enabled: false
database: # WE RECOMMEND NOT TOUCHING THIS.
enabled: true
database: # WE DO NOT RECOMMEND TOUCHING THIS.
type: 'sqlite' # Available types are 'sqlite' and 'mysql'
sqlite: # ONLY CONFIGURE IS YOU HAVE DATABASE TYPE AS 'sqlite'
sqlite_db_name: 'database.sqlite' # The database will be stored in './database/' directory
Expand Down Expand Up @@ -60,18 +60,21 @@ eggs:
backups: 1
allocations: 1
info: # All this information can be found on the Egg's information page.
egg: 16 # ID of the egg
egg: 15 # ID of the egg
docker_image: ghcr.io/beastgamer81/klovitegg:latest # Docker image of the egg
startup: ./install.sh" # Startup command of the egg
environment: # Environment variables of the egg
NODE_VERSION: latest
PMMP_VERSION: PM5
NODE_MAIN_FILE: index.js
payments: # Allow transactions on KlovitClient using various payment gateways.
enabled: false # CURRENTLY PAYMENTS DO NOT WORK
enabled: false
gateways:
cryptomus: # Allow transactions through Cryptomus gateway.
stripe: # Allow transactions through Stripe gateway.
enabled: false
key: '' # Stripe secret key
price: 1 # Price for 100 coins in the given currency
currency: 'USD' # The currency for payments (Must be in 3 character format)
gifting: # Allow the gifting of coins and resources.
enabled: false
coins: # Coins, the virtual currency of the host.
Expand Down
Loading

0 comments on commit 11c01d0

Please sign in to comment.