From 5777f650c69609fecd3e7696432bad256c778856 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 28 Feb 2021 13:53:40 +0000 Subject: Directories conf is optional --- server/src/net/usebox/gemini/server/ServiceConf.scala | 2 +- server/test/src/ServerSpec.scala | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/src/net/usebox/gemini/server/ServiceConf.scala b/server/src/net/usebox/gemini/server/ServiceConf.scala index f0751d2..e90d6a8 100644 --- a/server/src/net/usebox/gemini/server/ServiceConf.scala +++ b/server/src/net/usebox/gemini/server/ServiceConf.scala @@ -20,7 +20,7 @@ case class VirtualHost( indexFile: String = "index.gmi", directoryListing: Boolean = true, geminiParams: Option[String] = None, - directories: List[Directory] + directories: List[Directory] = Nil ) object VirtualHost { diff --git a/server/test/src/ServerSpec.scala b/server/test/src/ServerSpec.scala index c81afa3..3067fb8 100644 --- a/server/test/src/ServerSpec.scala +++ b/server/test/src/ServerSpec.scala @@ -320,8 +320,7 @@ class ServerSpec extends AnyFlatSpec with Matchers { virtualHosts = List( VirtualHost( host = "localhost", - root = getClass.getResource("/").getPath(), - directories = Nil + root = getClass.getResource("/").getPath() ) ), genCertValidFor = 1.day, -- cgit v1.2.3