Updating configuration (#197)
#### Added - [ACME] Display warning about sudo usage when issuing certificate with DNS API validation (require `sudo -E`) #### Changed - [ACME] Resolve domain IP over HTTPS with Cloudflare DNS Resolver - [CORE] Cement Framework updated to v2.10.2 - [SITE] database name = 0 to 16 characters from the site name + 4 randomly generated character - [SITE] database user = 0 to 12 characters from the site name + 4 randomy generated character - [STACK] Improve sysctl tweak deployment #### Fixed - [SITE] https redirection missing on subdomains sites - Issues with digitalocean mariadb repository - Cement Framework output handler issues - [CLEAN] check if Nginx is installed before purging fastcgi or opcache
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
# Based on https://github.com/datafolklabs/cement/issues/295
|
||||
# To avoid encoding releated error,we defined our custom output handler
|
||||
# I hope we will remove this when we upgarde to Cement 2.6 (Not released yet)
|
||||
import os
|
||||
|
||||
from cement.ext.ext_mustache import MustacheOutputHandler
|
||||
from cement.utils import fs
|
||||
|
||||
|
||||
class WOOutputHandler(MustacheOutputHandler):
|
||||
class Meta:
|
||||
label = 'wo_output_handler'
|
||||
|
||||
def _load_template_from_file(self, path):
|
||||
for templ_dir in self.app._meta.template_dirs:
|
||||
full_path = fs.abspath(os.path.join(templ_dir, path))
|
||||
if os.path.exists(full_path):
|
||||
self.app.log.debug('loading template file %s' % full_path)
|
||||
return open(full_path, encoding='utf-8', mode='r').read()
|
||||
else:
|
||||
continue
|
||||
Reference in New Issue
Block a user