mirror of
https://github.com/certbot/certbot.git
synced 2026-01-27 19:42:53 +03:00
Fix spacing of nginx redirect blocks
This commit is contained in:
@@ -401,8 +401,8 @@ class NginxConfigurator(common.Plugin):
|
||||
:type unused_options: Not Available
|
||||
"""
|
||||
redirect_block = [[
|
||||
['if', '($scheme != "https")'],
|
||||
[['return', '301 https://$host$request_uri']]
|
||||
['\n', 'if', ' ', '($scheme != "https")'],
|
||||
[['\n ', 'return', ' ', '301 https://$host$request_uri']]
|
||||
]]
|
||||
self.parser.add_server_directives(
|
||||
vhost.filep, vhost.names, redirect_block, replace=False)
|
||||
|
||||
Reference in New Issue
Block a user