forked from iedon/iedon-net-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
55 lines (38 loc) · 1.29 KB
/
config.py
File metadata and controls
55 lines (38 loc) · 1.29 KB
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
# -*- coding: utf-8 -*-
########### iEdon PeerAPI Agent ###########
## Author: iEdon ##
## Version : 1.0.0 ##
######################################################
import logging
# Log Level
VAR_LOG_LEVEL = logging.INFO
# Log Format
VAR_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
# Log Date Format
VAR_LOG_DATE_FORMAT = "%m/%d/%Y %H:%M:%S %p"
# Log Path
VAR_LOG_PATH = './logs/peerapi-agent.log'
# Log Max Size
VAR_LOG_SIZE = 1024*1024*32
# Log backups to hold
VAR_LOG_BACKUPS = 5
# Port to listen
VAR_PORT = 3000
# JWT Secret
VAR_JWT_SECRET = '________________'
# NODE_ENDPOINT
VAR_ENDPOINT = '_______________________'
# NODE_IP
VAR_IPV4 = '172.x.x.x'
VAR_IPV6 = 'fdxx::xxx'
VAR_IPV6_LINK_LOCAL = 'fe80::xxxx'
# WireGuard Public Key
VAR_WIREGUARD_PUBLIC_KEY = '___________________'
# Template file for bird
VAR_BIRD_PEER_TEMPLATE_FILE = './templates/bird.conf'
# Template file for wireguard
VAR_WIREGUARD_TEMPLATE_FILE = './templates/wireguard.conf'
# Path to place bird configuration file(ends with '/')
VAR_BIRD_PEER_CONF_DIR = '/etc/bird/peers/'
# Path to place WireGuard configuration file(ends with '/')
VAR_WIREGUARD_CONF_DIR = '/etc/wireguard/'