Updated DKIM path

This commit is contained in:
Illia Chub 2021-01-01 20:24:23 +02:00
parent a2f3d298a6
commit 9bdb68d5a3

View file

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