diff options
author | Juan J. Martinez <jjm@usebox.net> | 2021-02-28 13:53:40 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-07-22 19:49:51 +0100 |
commit | 5777f650c69609fecd3e7696432bad256c778856 (patch) | |
tree | bfbbe941c0bd0c4d0d4a528cd2e87b73213dcb6e /server | |
parent | fc60ea8c4d52c5015edce1e4c6086d80e7a7d830 (diff) | |
download | spacebeans-5777f650c69609fecd3e7696432bad256c778856.tar.gz spacebeans-5777f650c69609fecd3e7696432bad256c778856.zip |
Directories conf is optional
Diffstat (limited to 'server')
-rw-r--r-- | server/src/net/usebox/gemini/server/ServiceConf.scala | 2 | ||||
-rw-r--r-- | server/test/src/ServerSpec.scala | 3 |
2 files changed, 2 insertions, 3 deletions
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, |