Skip to content

Commit

Permalink
- added comments to config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ka0un committed Sep 23, 2023
1 parent b22089b commit 7323cf0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/kasun/website/SimpleWebsite.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.kasun.website;


import org.bukkit.ChatColor;
import org.bukkit.plugin.java.JavaPlugin;
import org.kasun.website.Utils.Metrics;
import org.kasun.website.Utils.StaticLogger;
Expand Down
41 changes: 37 additions & 4 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,52 @@



#==============================================================================
# Web Server configuration
# ____ _ _ _ ___ _ ____ _ _ _ ____ ___ ____ _ ___ ____
# [__ | |\/| |__] | |___ | | | |___ |__] [__ | | |___
# ___] | | | | |___ |___ |_|_| |___ |__] ___] | | |___
# Simple Plugin That Lets you host a website on your server
#
# Created by: Kasun Hapangama
# Website: https://ka0un.github.io/simplewebsite/
# GitHub: https://github.com/ka0un/SimpleWebsite
# Discord: https://dsc.gg/sundevs
#==============================================================================
webserver:
# Website Configurations
domain: localhost
# If you are connected a domain to your minecraft server then enter it here.
# you can leave it as localhost if you are not using a domain.

indexFile: index.html
# The file that will be loaded when a user visits your website.
# You can change this to any file name you want.

port: 8081
# The port that the webserver will run on.
# You can change this to any port you want.
# you have to allocate the port from your server host before changing this.
# once configured you can access your website by visiting http://localhost:8081 (replace localhost with your domain or server ip)

ssl:
# SSL Configurations
useSSL: false
# If you want to use SSL then set this to true.
# You have to configure the SSL settings below if you want to use SSL.

keystorePassword: test
# The password of the keystore file.
# You can change this to any password you want.

api:
# API Configurations
apiOnly: false
# If you want to use the API only then set this to true.
# This will disable the webserver and only run the API.

whitelistPlaceholders: false
# If you want to whitelist the placeholders then set this to true.
# This will only allow the placeholders that are listed in the whitelist.
# You can add placeholders to the whitelist below.
# This will prevent other parties from accessing your server data.

placeholder-whitelist:
- 'server_online'
- 'server_max_players'

0 comments on commit 7323cf0

Please sign in to comment.