Skip to content

Commit

Permalink
Removed unncessary configuration parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
verovaleros committed Apr 21, 2021
1 parent acc6f85 commit 2255513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion config/config.ini.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ PATH = /data
[OPENVPN]
SERVER_PUBLIC_URL = udp://example-server.com
PKI_ADDRESS = vpn.example-server.com
CERTIFICATES = /data/.certs
NETWORK_CIDR = 192.168.255.0/24

[AIVPN]
Expand Down
6 changes: 2 additions & 4 deletions mod_openvpn/mod_openvpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,13 @@ def read_configuration():
LOG_FILE = config['LOGS']['LOG_OPENVPN']
SERVER_PUBLIC_URL = config['OPENVPN']['SERVER_PUBLIC_URL']
PKI_ADDRESS = config['OPENVPN']['PKI_ADDRESS']
CERTIFICATES = config['OPENVPN']['CERTIFICATES']
NETWORK_CIDR = config['OPENVPN']['NETWORK_CIDR']
PATH = config['STORAGE']['PATH']

return REDIS_SERVER,CHANNEL,LOG_FILE,SERVER_PUBLIC_URL,PKI_ADDRESS,CERTIFICATES,NETWORK_CIDR,PATH
return REDIS_SERVER,CHANNEL,LOG_FILE,SERVER_PUBLIC_URL,PKI_ADDRESS,PATH

if __name__ == '__main__':
# Read configuration
REDIS_SERVER,CHANNEL,LOG_FILE,SERVER_PUBLIC_URL,PKI_ADDRESS,CERTIFICATES,NETWORK_CIDR,PATH = read_configuration()
REDIS_SERVER,CHANNEL,LOG_FILE,SERVER_PUBLIC_URL,PKI_ADDRESS,PATH = read_configuration()

logging.basicConfig(filename=LOG_FILE, level=logging.DEBUG,format='%(asctime)s, MOD_OPENVPN, %(message)s')

Expand Down

0 comments on commit 2255513

Please sign in to comment.