mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Add debugging info for Nginx tls-sni and http integration tests purposes (#6414)
This commit is contained in:
parent
e0f760099c
commit
139ef20650
3 changed files with 4 additions and 0 deletions
|
|
@ -102,6 +102,7 @@ class NginxHttp01(common.ChallengePerformer):
|
|||
config = [self._make_or_mod_server_block(achall) for achall in self.achalls]
|
||||
config = [x for x in config if x is not None]
|
||||
config = nginxparser.UnspacedList(config)
|
||||
logger.debug("Generated server block:\n%s", str(config))
|
||||
|
||||
self.configurator.reverter.register_file_creation(
|
||||
True, self.challenge_conf)
|
||||
|
|
|
|||
|
|
@ -141,6 +141,8 @@ class NginxTlsSni01(common.TLSSNI01):
|
|||
with open(self.challenge_conf, "w") as new_conf:
|
||||
nginxparser.dump(config, new_conf)
|
||||
|
||||
logger.debug("Generated server block:\n%s", str(config))
|
||||
|
||||
def _make_server_block(self, achall, addrs):
|
||||
"""Creates a server block for a challenge.
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ test_deployment_and_rollback() {
|
|||
}
|
||||
|
||||
export default_server="default_server"
|
||||
nginx -v
|
||||
reload_nginx
|
||||
certbot_test_nginx --domains nginx.wtf run
|
||||
test_deployment_and_rollback nginx.wtf
|
||||
|
|
|
|||
Loading…
Reference in a new issue