29 Commits

Author SHA1 Message Date
0xJacky 535c8efb38 fix(sitecheck): bound outbound connections and add global controls (#1608)
The site checker created a fresh http.Transport per request and per
EnhancedSiteChecker, with Go's default Happy-Eyeballs dialer. When
server_name entries resolved to ingress services returning many A
records (ngrok, AWS ALB, Cloudflare), each sweep opened enough flows
to exhaust conntrack tables on consumer routers (UniFi).

Introduce a package-level shared http.Transport with MaxConnsPerHost=2,
MaxIdleConnsPerHost=2 and FallbackDelay=-1 (disables IPv6 dial races),
plumb it through SiteChecker and EnhancedSiteChecker, and only build a
custom client when the per-site HealthCheckConfig truly diverges on
TLS. Reuse the response body fetched by the health check for favicon
extraction so each site is hit at most once per sweep, and dedupe sites
sharing the same host:port before fan-out.

Add a [site_check] settings section (Enabled, Concurrency, Interval-
Seconds) so operators can disable the checker entirely or tune the
sweep cadence; clamp Concurrency to [1, 20] and IntervalSeconds to
>=30. Document the new section in en, zh_CN and zh_TW guides and add
sidebar entries.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 16:06:06 +08:00
0xJacky 029142f944 chore: update dependencies and refactor settings management 2026-03-14 21:11:59 +08:00
Jray 0e7ea57110 feat: support oidc login (#1488) 2025-12-15 21:56:59 +08:00
0xJacky 9aa5a260b6 feat(nginx_log): add advanced indexing settings 2025-08-31 15:11:14 +08:00
Jacky 536aa545e1 feat: auto backup #999 2025-05-25 21:38:30 +08:00
Jacky d0cf93d5e3 refactor: replace upgrader with version package for runtime and release information 2025-04-21 08:06:27 +00:00
Jacky 4cb4695e7b feat: backup and restore 2025-03-29 19:52:50 +08:00
Jacky d80db84adb chore(deps): update orderedmap to v3 2024-12-14 17:39:49 +08:00
Jacky c8c0446308 chore: prepare v2.0.0-beta.37 2024-10-26 17:20:45 +08:00
Jacky 925e61abf4 fix: update demo database and app.ini; enhance: migration 2024-10-23 11:48:41 +08:00
Jacky 80cb8e1151 docs: update docs regarding to settings v2 2024-10-22 23:56:56 +08:00
Jacky 33a996e777 refactor: migrate to new cosy 2024-10-22 16:38:38 +08:00
Jacky 4d1adac8c4 enhance: do not save settings from env to app.ini #594 2024-10-06 22:31:15 +08:00
Jacky 018a3f15fd feat: instruction for adding passkey 2024-09-16 23:39:08 +08:00
Jacky bdfbbd0e8f feat: login via passkey 2024-09-15 20:32:03 +08:00
Jacky 5abd9b75bb feat: login 2fa 2024-07-23 17:28:13 +08:00
Jacky cff843b82b feat: add login failed ban ip list 2024-07-21 15:35:23 +08:00
Jacky 3b937ee0f4 feat: add ip whitelist 2024-07-20 10:37:19 +08:00
Jacky e0366f949f feat: reload cluster node settings from settings file #169 2024-05-08 15:32:45 +08:00
Jacky a689608bdb feat: use settings file to predefine nodes #169 2024-05-07 19:45:24 +08:00
Jacky 1e9de6f21b feat: customize local environment name #313 2024-05-07 11:22:44 +08:00
Jacky 4c74bc8619 feat: use env to predefine admin user #214 2024-05-06 23:50:32 +08:00
Jacky cb0fb47e1c feat: use env to override settings 2024-05-06 21:24:53 +08:00
Jacky 0fa98703cd feat: logrotate cron task for docker users #255 2024-02-25 20:45:45 +08:00
0xJacky ac68fd05c9 refactor(cert): introducing new management page
1. User can now view the latest renew logs of the certain certificate.

2. Add manually renew button in certificate modify page for managed certificate (auto cert)
2023-12-04 22:22:42 +08:00
0xJacky 37fa8b899f refactor: casdoor settings 2023-12-03 11:21:28 +08:00
0xJacky e5a5889931 refactor: project directory structure 2023-11-26 18:59:12 +08:00
0xJacky 08b54b5bbb change work dir 2022-02-18 18:04:13 +08:00
0xJacky d09f484790 embed frontend 2022-02-18 00:01:27 +08:00