mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update cert_request.py
This commit is contained in:
@@ -77,6 +77,9 @@ class cert_request:
|
|||||||
__cfg_file = 'data/letsencrypt.json'
|
__cfg_file = 'data/letsencrypt.json'
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
self.__save_path = mw.getServerDir() + '/web_conf/letsencrypt'
|
||||||
|
if not os.path.exists(self.__save_path):
|
||||||
|
os.makedirs(self.__save_path)
|
||||||
if self.__debug:
|
if self.__debug:
|
||||||
self.__url = 'https://acme-staging-v02.api.letsencrypt.org/directory'
|
self.__url = 'https://acme-staging-v02.api.letsencrypt.org/directory'
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user