Updated DKIM path

pull/2/head
Illia Chub 2021-01-01 20:34:51 +02:00
parent 9bdb68d5a3
commit 7ba0c5820d
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@ def uname():
return jsonify(uname)
@app.route("/getDKIM", methods=["GET"])
def getDkimKey():
dkim = subprocess.check_output(["cat", "/var/dkim/" + os.getenv("DOMAIN")+".selector.txt"])
with open("/var/domain") as domainFile:
domain = domainFile.readlines()
dkim = subprocess.check_output(["cat", "/var/dkim/" + domain + ".selector.txt"])
return jsonify(dkim)
@app.route("/pythonVersion", methods=["GET"])
def getPythonVersion():