From 8fa66bc96c4ae99e1f8f78ba5d33695fd941ab49 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Wed, 22 Feb 2017 12:55:48 +0330 Subject: [PATCH] fix(ssl): must listen on 80 before the challenge --- src/System/Serverman/Actions/Nginx.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System/Serverman/Actions/Nginx.hs b/src/System/Serverman/Actions/Nginx.hs index 1d9ffb1..cbcfcfc 100644 --- a/src/System/Serverman/Actions/Nginx.hs +++ b/src/System/Serverman/Actions/Nginx.hs @@ -19,7 +19,7 @@ module System.Serverman.Actions.Nginx (nginx) where nginx params@(ServerParams { ssl, serverService, domain, directory, serverType }) = do -- Turn SSL off at first, because we have not yet received a certificate - let content = show (params { ssl = False }) + let content = show (params { ssl = False, port = 80 }) parent = configDirectory serverService "configs" path = parent domain targetDir = directory