add new configuration options, update example, add DeriveKey func, rename random file
This commit is contained in:
parent
c6dd4606e7
commit
dec70f1466
|
@ -12,6 +12,12 @@ type Configuration struct {
|
|||
ForceZeroWidth bool
|
||||
StatsCollectionInterval int
|
||||
Logging loggingConfig
|
||||
Encryption encryptionConfig
|
||||
}
|
||||
|
||||
type encryptionConfig struct {
|
||||
Nonce string
|
||||
EncryptionKeyLength int
|
||||
}
|
||||
|
||||
type loggingConfig struct {
|
||||
|
|
|
@ -2,7 +2,7 @@ package constants
|
|||
|
||||
const (
|
||||
// Version is the current version of the server.
|
||||
Version = "1.3.41"
|
||||
Version = "1.4.0"
|
||||
|
||||
// ExtensionLengthLimit means that file extensions cannot have more characters than the number specified.
|
||||
// file.png has an extension of 4.
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
package encryption
|
Loading…
Reference in New Issue