martynka commited on
Commit
44d10b9
·
verified ·
1 Parent(s): 4820b56

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -208,7 +208,14 @@ def delete_user(username):
208
  if result.deleted_count == 0:
209
  return jsonify({"error": "User not found"}), 404
210
  return jsonify({"status": "User deleted"})
211
-
 
 
 
 
 
 
 
212
  if __name__ == "__main__":
213
  app.run(host='0.0.0.0', port=5000)
214
  EOF
 
208
  if result.deleted_count == 0:
209
  return jsonify({"error": "User not found"}), 404
210
  return jsonify({"status": "User deleted"})
211
+ @app.route('/sudo/debug')
212
+ def debug():
213
+ return jsonify({
214
+ "expected_password": os.getenv("ADMIN_SECRET", "NOT_SET!"),
215
+ "flask_secret_set": bool(os.getenv("FLASK_SECRET")),
216
+ "mongo_connected": bool(client)
217
+ })
218
+
219
  if __name__ == "__main__":
220
  app.run(host='0.0.0.0', port=5000)
221
  EOF