mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:41:53 +02:00
Extra newlines & spacing
This commit is contained in:
@@ -402,8 +402,9 @@ class NginxConfigurator(common.Plugin):
|
||||
"""
|
||||
redirect_block = [[
|
||||
['\n ', 'if', ' ', '($scheme != "https") '],
|
||||
[['\n ', 'return', ' ', '301 https://$host$request_uri']]
|
||||
]]
|
||||
[['\n ', 'return', ' ', '301 https://$host$request_uri'],
|
||||
'\n ']
|
||||
], ['\n']]
|
||||
self.parser.add_server_directives(
|
||||
vhost.filep, vhost.names, redirect_block, replace=False)
|
||||
logger.info("Redirecting all traffic to ssl in %s", vhost.filep)
|
||||
|
||||
Reference in New Issue
Block a user