-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
72 lines (50 loc) · 1.65 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
#LOCATIONS
# Data this is where the finished and encrypted files live
# When keys are regenerated this folder will be emptyied
# default /var/encore/data
datadir="/var/encore/data"
# JSON This is where plan text maps will live
# these are generated along side the keys
# default /var/encore/indexs
plnjson="/var/encore/indexs"
# This is where the encrypted jsons for written file
# will live. The json debug tool should be used to decrypt
# and modify these files
encjson="/var/encore/maps"
# KEY These are the random encryption keys
# 128 bit strings for use with the encrypt script
# https://www.fastsitephp.com/fr/documents/file-encryption-bash
# default /opt/encore/keys
keydir="/var/encore/keys"
# SYSTEM KEY JSON file that contain location and key information
# are encrypted using this key
# if this key is missing on script call all file in:
# $datadir will be illegible
# IF THIS KEY IS DELETED ALL DATA IS CONSIDERED LOST
# default /opt/encore/keys/systemkey.dk
systemkey="/etc/systemkey.dk"
#log dir
logdir="/var/log/encore/general"
# key_max the limit of keys to generate
# default=100
key_max=100
# Works like a key min value
# by key_cur and key_max the range from which keys are picked
# can be changed
key_cur=0
# soft moving
# set 1 to use cp instead of mv when gatheing files to encrypt
# default = 0
soft_move=0
# re-place file
# the original path of files are stored when encrypted
# if set files will be re placed back in there original
# directory
# default=1
re_place=1
# save on destroy
# if you want the destroy function to recover the file before deleting
# the encrypted copy set this to 1
# default=1
leave_in_peace=1