-
Notifications
You must be signed in to change notification settings - Fork 3
/
.link-checker-service.toml
95 lines (74 loc) · 2.8 KB
/
.link-checker-service.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright 2020-2021 Siemens AG
# This file is not subject to the MPLv2 license, and can be edited freely.
# proxy = "http://<some-proxy>:<port>"
# pacScriptURL = "http://<some-proxy>/<some-proxy.pac>"
# uncomment to bind to a custom address
# bindAddress = "127.0.0.1:8080"
# uncomment if CORS is undesired
corsOrigins = [
"http://localhost:8080",
"http://localhost:8090",
"http://localhost:8091",
"http://localhost:8092"
]
maxConcurrentHTTPRequests = 200
cacheExpirationInterval = "24h"
# this option is valid only for the default cache
cacheCleanupInterval = "48h"
# use a github.com/dgraph-io/ristretto based cache that can limit the cache memory
# this cache is expected to be slightly slower due to the size calculations
cacheUseRistretto = false
cacheMaxSize = 1000_000_000 # approx. max cache size in bytes
cacheNumCounters = 10_000_000 # number of 4-bit access counters. Set at approx 10x max unique expected URLs
# failures can happen for any reason
# failing links will be retried in a subsequent check after that period
retryFailedAfter = "2m"
# rate-limit requests by IP. Empty string for no limits
IPRateLimit = ""
# to limit, use a rate specification, e.g. 5-S (5 per second), 1000-H (1000 per hour)
# IPRateLimit = "10-S"
# set to 0 to disable URLs per request limit
maxURLsInRequest = 2000
# set to 0 to disable the rate limit per domain
requestsPerSecondPerDomain = 10
disableRequestLogging = false
# "urlcheck-noproxy" can be used if a proxy is defined, and an additional check without a proxy makes sense
urlCheckerPlugins = [
"urlcheck",
]
# see https://github.com/gobwas/glob pattern definitions
# enable if necessary (will impact check performance)
# domainBlacklistGlobs = [
# "some-dom?in.*"
# ]
# Middleware used: https://github.com/appleboy/gin-jwt
useJWTValidation = false
privKeyFile = "./dummy.priv.cer"
pubKeyFile = "./public.cer"
signingAlgorithm = "RS384"
# searchForBodyPatterns allows searching for patterns in response bodies
# enabling searchForBodyPatterns will impact checker performance
# this feature is only configurable via the config file
searchForBodyPatterns = false
[[bodyPatterns]]
name = "authentication redirect"
regex = "Authentication Redirect"
[[bodyPatterns]]
name = "login"
regex = "Login Service"
#[[bodyPatterns]]
#name = "SPA"
#regex = "\\\"main-"
#
#[[bodyPatterns]]
#name = "google"
#regex = "google"
[HTTPClient]
maxRedirectsCount = 15
timeoutSeconds = 45
userAgent = "lcs/0.9"
browserUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36"
acceptHeader = "*/*"
skipCertificateCheck = false
# this will fill out the URL response's remote_addr field when available
enableRequestTracing = false