mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
(jooby) Clean up initialization process
This commit is contained in:
parent
7444a2f36c
commit
b91463383e
@ -16,8 +16,6 @@ import org.slf4j.Marker;
|
||||
import org.slf4j.MarkerFactory;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
|
||||
public class JoobyService {
|
||||
@ -106,6 +104,7 @@ public class JoobyService {
|
||||
restEndpoint.port(),
|
||||
config.externalAddress());
|
||||
|
||||
// FIXME: This won't work outside of docker, may need to submit a PR to jooby to allow classpaths here
|
||||
jooby.install(new JteModule(Path.of("/app/resources/jte"), Path.of("/app/classes/jte-precompiled")));
|
||||
|
||||
var options = new ServerOptions();
|
||||
@ -121,10 +120,6 @@ public class JoobyService {
|
||||
jooby.mvc(service);
|
||||
}
|
||||
|
||||
jooby.assets("/webfonts/*", Paths.get("/app/resources/static/webfonts"))
|
||||
.setMaxAge(Duration.ofDays(365));
|
||||
jooby.assets("/*", Paths.get("/app/resources/static"));
|
||||
|
||||
jooby.before(this::auditRequestIn);
|
||||
jooby.after(this::auditRequestOut);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user