mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
Fix spacing of nginx redirect blocks
This commit is contained in:
parent
94ea424638
commit
2feeb50109
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue