mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-06 17:32:39 +02:00
Compare commits
3 Commits
deploy-001
...
deploy-001
Author | SHA1 | Date | |
---|---|---|---|
|
0ea8092350 | ||
|
483d29497e | ||
|
bae44497fe |
@@ -34,8 +34,9 @@ import java.util.*;
|
||||
public class WarcRecorder implements AutoCloseable {
|
||||
/** Maximum time we'll wait on a single request */
|
||||
static final int MAX_TIME = 30_000;
|
||||
/** Maximum (decompressed) size we'll fetch */
|
||||
static final int MAX_SIZE = 1024 * 1024 * 10;
|
||||
|
||||
/** Maximum (decompressed) size we'll save */
|
||||
static final int MAX_SIZE = Integer.getInteger("crawler.maxFetchSize", 10 * 1024 * 1024);
|
||||
|
||||
private final WarcWriter writer;
|
||||
private final Path warcFile;
|
||||
|
@@ -48,6 +48,8 @@ public class SimpleLinkScraper implements AutoCloseable {
|
||||
private final Duration readTimeout = Duration.ofSeconds(10);
|
||||
private final DomainLocks domainLocks = new DomainLocks();
|
||||
|
||||
private final static int MAX_SIZE = Integer.getInteger("crawler.maxFetchSize", 10 * 1024 * 1024);
|
||||
|
||||
public SimpleLinkScraper(LiveCrawlDataSet dataSet,
|
||||
DbDomainQueries domainQueries,
|
||||
DomainBlacklist domainBlacklist) {
|
||||
@@ -207,7 +209,7 @@ public class SimpleLinkScraper implements AutoCloseable {
|
||||
}
|
||||
|
||||
byte[] body = getResponseData(response);
|
||||
if (body.length > 1024 * 1024) {
|
||||
if (body.length > MAX_SIZE) {
|
||||
return new FetchResult.Error(parsedUrl);
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,14 @@
|
||||
<section id="frontpage-tips">
|
||||
<h2>Public Beta Available</h2>
|
||||
<div class="info">
|
||||
<p>
|
||||
A redesigned version of the search engine UI is available for beta testing.
|
||||
Feel free to give it a spin, feedback is welcome!
|
||||
The old one will also be keep being available if you hate it,
|
||||
or have compatibility issues.
|
||||
</p>
|
||||
<p>
|
||||
<a href="https://test.marginalia.nu/">Try it out!</a>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
@@ -24,7 +24,7 @@
|
||||
<section id="frontpage">
|
||||
{{>search/index/index-news}}
|
||||
{{>search/index/index-about}}
|
||||
{{>search/index/index-tips}}
|
||||
{{>search/index/index-redesign}}
|
||||
</section>
|
||||
|
||||
{{>search/parts/search-footer}}
|
||||
|
2
tools/deployment/deployment.py
Normal file → Executable file
2
tools/deployment/deployment.py
Normal file → Executable file
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from dataclasses import dataclass
|
||||
import subprocess, os
|
||||
from typing import List, Set, Dict, Optional
|
||||
|
Reference in New Issue
Block a user