mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
# coding:utf-8
|
|
|
|
# ---------------------------------------------------------------------------------
|
|
# MW-Linux面板
|
|
# ---------------------------------------------------------------------------------
|
|
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
|
|
# ---------------------------------------------------------------------------------
|
|
# Author: midoks <midoks@163.com>
|
|
# ---------------------------------------------------------------------------------
|
|
|
|
import os
|
|
import json
|
|
|
|
from flask import Blueprint, render_template
|
|
from flask import request
|
|
|
|
from admin.user_login_check import panel_login_required
|
|
|
|
from utils.plugin import plugin as MwPlugin
|
|
from utils.site import sites as MwSites
|
|
import utils.site as site
|
|
import core.mw as mw
|
|
import thisdb
|
|
|
|
from .site import blueprint
|
|
|
|
|
|
# 删除代理配置
|
|
@blueprint.route('/get_ssl', endpoint='get_ssl', methods=['POST'])
|
|
@panel_login_required
|
|
def get_ssl():
|
|
site_name = request.form.get('site_name', '')
|
|
ssl_type = request.form.get('ssl_type', '')
|
|
return MwSites.instance().getSsl(site_name, ssl_type)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|