SSL now working and reorganised web server

This commit is contained in:
simon
2018-04-28 12:06:55 -04:00
parent e3a650a4fc
commit e025b6d2da
17 changed files with 380 additions and 265 deletions

View File

@@ -1,29 +1,41 @@
# MySQL username
mysql_user=mar
# MySQL password/
mysql_pass=mar
# MySQL address
mysql_url=jdbc:mysql://localhost:3306/mar?useSSL=false
# File management
save_interval=5
log_limit=2000000
log_count=10
use_ssl=0
cert_path=certificates
#ssl
use_ssl=1
keyStore_path=certificates/keystore.jks
keyStore_password=mar
#Server
mar_port=4567
mar_address=localhost
server_name=Official MAR server
# ----------------------------------------------
# Length of a tick in ms
#Database
mongo_dbname=mar_beta
#Biomass
biomass_yield=2
minBiomassCount=3
minBiomassRespawnCount=2
maxBiomassCount=10
maxBiomassRespawnCount=6
biomassEnergyValue=4000
biomassRespawnTime=64
biomassRespawnThreshold=1
#World generation
wg_centerPointCountMin=5
wg_centerPointCountMax=15
wg_wallPlainRatio=4
wg_minIronCount=0
wg_maxIronCount=2
wg_minCopperCount=0
wg_maxCopperCount=2
#CPU
tick_length=1000
# Default offset of the origin (starting point of code execution) in words
org_offset=512
# Address of the stack bottom
stack_bottom=65536
# Size of the memory in words
memory_size=65536
# Initial location of new user's controlled unit
user_timeout=100
#User creation
new_user_worldX = 32767
new_user_worldY = 32767
new_user_dimension=w-
@@ -33,64 +45,20 @@ new_user_code=; Welcome to Much Assembly required!\n\
.text\n\
\t; Write code here\n\
\tbrk
# Default held item
new_user_item=0
# ----------------------------------------------
# Biomass units for each blob
biomass_yield=2
# Minimum biomass blob count for the WorldGenerator
minBiomassCount=3
minBiomassRespawnCount=2
# Maximum biomass blob count for the WorldGenerator
maxBiomassCount=10
maxBiomassRespawnCount=6
# Energy generated by consuming biomass
biomassEnergyValue=4000
# Maximum energy of the battery hardware in kJ
#Cubot
battery_max_energy=60000
# Maximum shield power
cubot_max_shield=100
cubot_max_hp=250
# Energy cost per unit to charge shield
shield_energy_cost=50
# Time for biomass respawn in ticks
biomassRespawnTime=64
# Respawn timer will start when biomass count is below this number
biomassRespawnThreshold=1
# NPC lifetime in ticks
#NPCs
npc_lifetime=1024
# Maximum travel distance from the Factory in Worlds
npc_max_factory_distance=3
# Maximum NPC per Factory
factory_max_npc_count=16
# Harvester max hp
harvester_hp_max=100
# Harvester hp regeneration per tick
harvester_regen=5
# Number of biomass units dropped on death
harvester_biomass_drop_count=8
# ----------------------------------------------
# Minimum center point count for the WorldGenerator
wg_centerPointCountMin=5
# Maximum center point count for the WorldGenerator
wg_centerPointCountMax=15
# Wall/Plain tile ratio for the WorldGenerator
wg_wallPlainRatio=4
# Minimum iron tile count for the WorldGenerator
wg_minIronCount=0
# Maximum iron tile count for the WorldGenerator
wg_maxIronCount=2
# Minimum copper tile count for the WorldGenerator
wg_minCopperCount=0
# Maximum copper tile count for the WorldGenerator
wg_maxCopperCount=2
# ----------------------------------------------
# Maximum execution time of user code in ms
user_timeout=100
# ----------------------------------------------
#Vaults
vault_door_open_time=4
electric_box_hp=250
min_electric_box_count=1