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.
|
|
# -*- coding: utf-8 -*- # © 2016 Therp BV <http://therp.nl> # © 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import os from odoo import http from odoo.http import request from ..models.letsencrypt import get_challenge_dir
class Letsencrypt(http.Controller): @http.route('/.well-known/acme-challenge/<filename>', auth='none') def acme_challenge(self, filename): try: with file(os.path.join(get_challenge_dir(), filename)) as key: return key.read() except IOError: pass return request.not_found()
|