Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 2.06 KB

File metadata and controls

53 lines (44 loc) · 2.06 KB

Nucifera-Chat

nucifera.xml config

version: 2018-12-04 14:53

Table of contents

Example file

Filename: nucifera.xml

<?xml version="1.0" encoding="UTF-8"?>
<NuciferaConfiguration>
	<Debug>
		<Verbose>false</Verbose>
		<FormatLog>true</FormatLog>
	</Debug>

	<Security>
		<!-- Token inactivity expiration in ms -->
		<TokenExpiration>1200000</TokenExpiration>
		<!-- Encrypt client-server communication using server key -->
		<AdditionalEncryption>true</AdditionalEncryption>
		<!-- Use Base64 instead of encryped byte streams -->
		<ParseBase64>false</ParseBase64>
		<Salt>your_salt_here</Salt>
	</Security>
</NuciferaConfiguration>

NuciferaConfiguration

The main section here is NuciferaConfiguration, which holds everything in this config file.

Debug

Debug is an additional debug settings section that may help during developing, testing or debugging process.

Element Explanation Example Default
Verbose Changes visibility of more detailed debug info in responses true or false false
FormatLog Pretty print outgoing communication (may take more disk space) true or false true

Security

Security is the section that stores any configuration regarding token, identity management and encryption.

Element Explanation Example Default
TokenExpiration A token expiration in milliseconds measured since last security activity 600000 [ms] (10 minutes) 1200000
AdditionalEncryption Whether to encrypt client-server communication using key pair as described in Encryption.md true or false true
ParseBase64 Whether the communication should be decrypted from and encrypted into Base64 form (or just raw bytes) true or false false
Salt Salt phrase used for saltig password hashes ic090ac0-9clasd,9q.AAAo2021- do_not_use_default