mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Skip insecure certificates check when scraping (#1120)
* Ignore insecure certificates when scraping * add ScraperCertCheck to scraper config options
This commit is contained in:
@@ -125,6 +125,7 @@ export const SettingsConfigurationPanel: React.FC = () => {
|
||||
const [scraperCDPPath, setScraperCDPPath] = useState<string | undefined>(
|
||||
undefined
|
||||
);
|
||||
const [scraperCertCheck, setScraperCertCheck] = useState<boolean>(true);
|
||||
const [stashBoxes, setStashBoxes] = useState<IStashBoxInstance[]>([]);
|
||||
|
||||
const { data, error, loading } = useConfiguration();
|
||||
@@ -164,6 +165,7 @@ export const SettingsConfigurationPanel: React.FC = () => {
|
||||
imageExcludes,
|
||||
scraperUserAgent,
|
||||
scraperCDPPath,
|
||||
scraperCertCheck,
|
||||
stashBoxes: stashBoxes.map(
|
||||
(b) =>
|
||||
({
|
||||
@@ -212,6 +214,7 @@ export const SettingsConfigurationPanel: React.FC = () => {
|
||||
setImageExcludes(conf.general.imageExcludes);
|
||||
setScraperUserAgent(conf.general.scraperUserAgent ?? undefined);
|
||||
setScraperCDPPath(conf.general.scraperCDPPath ?? undefined);
|
||||
setScraperCertCheck(conf.general.scraperCertCheck);
|
||||
setStashBoxes(
|
||||
conf.general.stashBoxes.map((box, i) => ({
|
||||
name: box?.name ?? undefined,
|
||||
@@ -717,6 +720,20 @@ export const SettingsConfigurationPanel: React.FC = () => {
|
||||
http://localhost:9222/json/version) to a Chrome instance.
|
||||
</Form.Text>
|
||||
</Form.Group>
|
||||
|
||||
<Form.Group>
|
||||
<Form.Check
|
||||
id="scaper-cert-check"
|
||||
checked={scraperCertCheck}
|
||||
label="Check for insecure certificates"
|
||||
onChange={() => setScraperCertCheck(!scraperCertCheck)}
|
||||
/>
|
||||
<Form.Text className="text-muted">
|
||||
Some sites use insecure ssl certificates. When unticked the scraper
|
||||
skips the insecure certificates check and allows scraping of those
|
||||
sites. If you get a certificate error when scraping untick this.
|
||||
</Form.Text>
|
||||
</Form.Group>
|
||||
</Form.Group>
|
||||
|
||||
<hr />
|
||||
|
||||
Reference in New Issue
Block a user