fix(webserver): newline between blocks
This commit is contained in:
parent
98eb84d867
commit
4f38e2bd83
@ -41,8 +41,7 @@ module System.Serverman.Actions.WebServer (ServerParams(..), ServerType(..)) whe
|
|||||||
in
|
in
|
||||||
case serverType conf of
|
case serverType conf of
|
||||||
Static ->
|
Static ->
|
||||||
(block "server" $ keyvalue (base ++ [("root", directory conf)])) ++
|
(block "server" $ keyvalue (base ++ [("root", directory conf)])) ++ "\n" ++ redirect
|
||||||
redirect
|
|
||||||
|
|
||||||
PortForwarding ->
|
PortForwarding ->
|
||||||
let proxyBlock = block "location /" $
|
let proxyBlock = block "location /" $
|
||||||
@ -51,6 +50,6 @@ module System.Serverman.Actions.WebServer (ServerParams(..), ServerType(..)) whe
|
|||||||
, ("proxy_set_header", "X-Forwarded-Server $host")
|
, ("proxy_set_header", "X-Forwarded-Server $host")
|
||||||
, ("proxy_set_header", "X-Forwarded-For $proxy_add_x_forwarded_for")
|
, ("proxy_set_header", "X-Forwarded-For $proxy_add_x_forwarded_for")
|
||||||
])
|
])
|
||||||
in (block "server" $ keyvalue base ++ proxyBlock) ++ redirect
|
in (block "server" $ keyvalue base ++ proxyBlock) ++ "\n" ++ redirect
|
||||||
|
|
||||||
| otherwise = "Unknown service provider"
|
| otherwise = "Unknown service provider"
|
||||||
|
Loading…
Reference in New Issue
Block a user