fix: Update dependencies
All checks were successful
Build Docker / BuildImage (push) Successful in 35s
All checks were successful
Build Docker / BuildImage (push) Successful in 35s
This commit is contained in:
parent
98acc8543c
commit
230042cc7b
@ -4,7 +4,7 @@ from flask_cors import CORS
|
|||||||
import os
|
import os
|
||||||
import dotenv
|
import dotenv
|
||||||
import requests
|
import requests
|
||||||
import CloudFlare
|
from cloudflare import Cloudflare
|
||||||
import datetime
|
import datetime
|
||||||
import qrcode
|
import qrcode
|
||||||
import re
|
import re
|
||||||
@ -504,7 +504,7 @@ def hnsdoh_acme():
|
|||||||
if auth != os.getenv('CF_AUTH'):
|
if auth != os.getenv('CF_AUTH'):
|
||||||
return jsonify({'status': 'error', 'error': 'Invalid auth'})
|
return jsonify({'status': 'error', 'error': 'Invalid auth'})
|
||||||
|
|
||||||
cf = CloudFlare.CloudFlare(token=os.getenv('CF_TOKEN'))
|
cf = Cloudflare(api_token=os.getenv('CF_TOKEN'))
|
||||||
zone = cf.zones.get(params={'name': 'hnsdoh.com'})
|
zone = cf.zones.get(params={'name': 'hnsdoh.com'})
|
||||||
zone_id = zone[0]['id']
|
zone_id = zone[0]['id']
|
||||||
existing_records = cf.zones.dns_records.get(zone_id, params={'type': 'TXT', 'name': '_acme-challenge.hnsdoh.com'})
|
existing_records = cf.zones.dns_records.get(zone_id, params={'type': 'TXT', 'name': '_acme-challenge.hnsdoh.com'})
|
||||||
|
Loading…
Reference in New Issue
Block a user