Commit e3f95ea4 authored by Davide Lagoa's avatar Davide Lagoa
Browse files

conf files removed deleted

parent c5c1ac96
def read_conf_file(path):
res = {}
with open(path) as file:
lines = file.readlines()
for line in lines:
if '=' in line:
prop = line.replace(" ", "").replace("\n", "")
l_str = prop.split('=')
res[l_str[0]] = l_str[1]
return res
def read_workers_conf_file(path):
res = []
with open(path) as file:
lines = file.readlines()
for line in lines:
str = line.replace(" ", "").replace("\n", "")
res.append(str)
return res
#docker workers configuration
#1 - name of the workers
name = transyt_worker_
#2 - number of workers
limit = 3
#3 - workers port
port = 80
#4 - connection protocol
protocol = http://
#5 - restful worker starter
starter = /start
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment