MarginaliaSearch/code/functions/live-capture/java/nu/marginalia/livecapture/LivecaptureModule.java
Viktor Lofgren 23cce0c78a Add a new function 'Live Capture' for on-demand screenshot capture
The screenshots are requested by the site-service, and triggered via the site-info view.
2024-09-27 13:46:34 +02:00

16 lines
599 B
Java

package nu.marginalia.livecapture;
import com.google.inject.AbstractModule;
import com.google.inject.name.Names;
public class LivecaptureModule extends AbstractModule {
public void configure() {
bind(String.class)
.annotatedWith(Names.named("browserless-uri"))
.toInstance(System.getProperty("live-capture.browserless-uri", ""));
bind(Integer.class)
.annotatedWith(Names.named("browserless-agent-threads"))
.toInstance(Integer.parseInt(System.getProperty("live-capture.browserless-agent-threads", "4")));
}
}