Mercurial Hosting > nabble
comparison conf/serve_nabble.luan @ 2:abe0694e9849
replace local_dir with home_dir
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Mon, 25 Mar 2019 13:59:13 -0600 |
| parents | 7ecd1a4ef557 |
| children | 4bc1fc540265 |
comparison
equal
deleted
inserted
replaced
| 1:75262552dd35 | 2:abe0694e9849 |
|---|---|
| 107 | 107 |
| 108 jetty.addNabbleConnectionLimitFilter(context, { max = "115", queueSize = "1000", timeoutDelay = "45000" }); | 108 jetty.addNabbleConnectionLimitFilter(context, { max = "115", queueSize = "1000", timeoutDelay = "45000" }); |
| 109 | 109 |
| 110 jetty.addBadBotFilter(context, { max = "10" }); | 110 jetty.addBadBotFilter(context, { max = "10" }); |
| 111 | 111 |
| 112 jetty.addCachingFilter(context, { dir = Init.local_dir.."cache", hasDelayedDelete = "true", acceptEncoding = "gzip" }); | 112 jetty.addCachingFilter(context, { dir = Init.home_dir.."local/cache", hasDelayedDelete = "true", acceptEncoding = "gzip" }); |
| 113 local FileHandler = require "java:cachingfilter.FileHandler" | 113 local FileHandler = require "java:cachingfilter.FileHandler" |
| 114 FileHandler.factory = FileHandler.mappedOrIoFile; | 114 FileHandler.factory = FileHandler.mappedOrIoFile; |
| 115 | 115 |
| 116 jetty.addGzipFilter(context); | 116 jetty.addGzipFilter(context); |
| 117 | 117 |
| 118 add_contexts(jetty) | 118 add_contexts(jetty) |
| 119 | 119 |
| 120 -- /backups folder | 120 -- /backups folder |
| 121 context = jetty.newFolderContext("/backups", Init.local_dir.."schemas", { "/*" }, false); | 121 context = jetty.newFolderContext("/backups", Init.home_dir.."local/schemas", { "/*" }, false); |
| 122 | 122 |
| 123 local log | 123 local log |
| 124 if log_to_console then | 124 if log_to_console then |
| 125 log = jetty.newNCSARequestLog() | 125 log = jetty.newNCSARequestLog() |
| 126 else | 126 else |
