MD AL AMIN TALUKDAR commited on
Commit
fd62456
2 Parent(s): 7ea9e86 8d9b660

Merge remote-tracking branch 'upstream/rolling' into hf-rolling

Browse files
.github/workflows/release.yml CHANGED
@@ -27,12 +27,12 @@ jobs:
27
  id: version-bump
28
  uses: hennejg/github-tag-action@v4.4.0
29
  with:
30
- github_token: ${{ secrets.GITHUB_TOKEN }}
31
  release_branches: rolling
32
  - name: create branch
33
- uses: peterjgrainger/action-create-branch@v2.4.0
34
  env:
35
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
  with:
37
  branch: update-from-${{ github.sha }}
38
  - name: update cargo.toml
@@ -53,7 +53,7 @@ jobs:
53
  id: create-pr
54
  run: gh pr create --base rolling --head update-from-${{ github.sha }} --title 'Merge new update into rolling' --body 'Created by Github action'
55
  env:
56
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57
  # merge PR using GitHub CLI
58
  - name: merge PR with update info
59
  id: merge-pr
@@ -63,7 +63,7 @@ jobs:
63
  - name: Create Release
64
  uses: softprops/action-gh-release@v1
65
  with:
66
- token: ${{ secrets.GITHUB_TOKEN }}
67
  generate_release_notes: true
68
  name: ${{ steps.version-bump.outputs.new_tag }}
69
  tag_name: ${{ steps.version-bump.outputs.new_tag }}
 
27
  id: version-bump
28
  uses: hennejg/github-tag-action@v4.4.0
29
  with:
30
+ github_token: ${{ secrets.ADMIN_RIGHTS_TOKEN }}
31
  release_branches: rolling
32
  - name: create branch
33
+ uses: peterjgrainger/action-create-branch@v3.0.0
34
  env:
35
+ GITHUB_TOKEN: ${{ secrets.ADMIN_RIGHTS_TOKEN }}
36
  with:
37
  branch: update-from-${{ github.sha }}
38
  - name: update cargo.toml
 
53
  id: create-pr
54
  run: gh pr create --base rolling --head update-from-${{ github.sha }} --title 'Merge new update into rolling' --body 'Created by Github action'
55
  env:
56
+ GH_TOKEN: ${{ secrets.ADMIN_RIGHTS_TOKEN }}
57
  # merge PR using GitHub CLI
58
  - name: merge PR with update info
59
  id: merge-pr
 
63
  - name: Create Release
64
  uses: softprops/action-gh-release@v1
65
  with:
66
+ token: ${{ secrets.ADMIN_RIGHTS_TOKEN }}
67
  generate_release_notes: true
68
  name: ${{ steps.version-bump.outputs.new_tag }}
69
  tag_name: ${{ steps.version-bump.outputs.new_tag }}
Cargo.lock CHANGED
@@ -21,9 +21,9 @@ dependencies = [
21
 
22
  [[package]]
23
  name = "actix-cors"
24
- version = "0.6.5"
25
  source = "registry+https://github.com/rust-lang/crates.io-index"
26
- checksum = "0346d8c1f762b41b458ed3145eea914966bb9ad20b9be0d6d463b20d45586370"
27
  dependencies = [
28
  "actix-utils",
29
  "actix-web",
@@ -1028,9 +1028,9 @@ dependencies = [
1028
 
1029
  [[package]]
1030
  name = "dhat"
1031
- version = "0.3.2"
1032
  source = "registry+https://github.com/rust-lang/crates.io-index"
1033
- checksum = "4f2aaf837aaf456f6706cb46386ba8dffd4013a757e36f4ea05c20dd46b209a3"
1034
  dependencies = [
1035
  "backtrace",
1036
  "lazy_static",
@@ -1848,9 +1848,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
1848
 
1849
  [[package]]
1850
  name = "libc"
1851
- version = "0.2.151"
1852
  source = "registry+https://github.com/rust-lang/crates.io-index"
1853
- checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
1854
 
1855
  [[package]]
1856
  name = "libmimalloc-sys"
@@ -1926,9 +1926,9 @@ dependencies = [
1926
 
1927
  [[package]]
1928
  name = "log"
1929
- version = "0.4.20"
1930
  source = "registry+https://github.com/rust-lang/crates.io-index"
1931
- checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
1932
 
1933
  [[package]]
1934
  name = "lua-src"
@@ -2968,9 +2968,9 @@ dependencies = [
2968
 
2969
  [[package]]
2970
  name = "reqwest"
2971
- version = "0.11.23"
2972
  source = "registry+https://github.com/rust-lang/crates.io-index"
2973
- checksum = "37b1ae8d9ac08420c66222fb9096fc5de435c3c48542bc5336c51892cffafb41"
2974
  dependencies = [
2975
  "async-compression",
2976
  "base64 0.21.5",
@@ -2995,6 +2995,7 @@ dependencies = [
2995
  "serde",
2996
  "serde_json",
2997
  "serde_urlencoded 0.7.1",
 
2998
  "system-configuration",
2999
  "tokio 1.35.1",
3000
  "tokio-rustls",
@@ -3054,9 +3055,9 @@ dependencies = [
3054
 
3055
  [[package]]
3056
  name = "rustix"
3057
- version = "0.38.28"
3058
  source = "registry+https://github.com/rust-lang/crates.io-index"
3059
- checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316"
3060
  dependencies = [
3061
  "bitflags 2.4.1",
3062
  "errno",
@@ -3507,6 +3508,12 @@ dependencies = [
3507
  "unicode-ident",
3508
  ]
3509
 
 
 
 
 
 
 
3510
  [[package]]
3511
  name = "synstructure"
3512
  version = "0.12.6"
@@ -3558,13 +3565,12 @@ checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417"
3558
 
3559
  [[package]]
3560
  name = "tempfile"
3561
- version = "3.9.0"
3562
  source = "registry+https://github.com/rust-lang/crates.io-index"
3563
- checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa"
3564
  dependencies = [
3565
  "cfg-if 1.0.0",
3566
  "fastrand",
3567
- "redox_syscall 0.4.1",
3568
  "rustix",
3569
  "windows-sys 0.52.0",
3570
  ]
@@ -4156,7 +4162,7 @@ checksum = "1778a42e8b3b90bff8d0f5032bf22250792889a5cdc752aa0020c84abe3aaf10"
4156
 
4157
  [[package]]
4158
  name = "websurfx"
4159
- version = "1.9.4"
4160
  dependencies = [
4161
  "actix-cors",
4162
  "actix-files",
@@ -4185,7 +4191,7 @@ dependencies = [
4185
  "mlua",
4186
  "redis",
4187
  "regex",
4188
- "reqwest 0.11.23",
4189
  "rusty-hook",
4190
  "scraper",
4191
  "serde",
 
21
 
22
  [[package]]
23
  name = "actix-cors"
24
+ version = "0.7.0"
25
  source = "registry+https://github.com/rust-lang/crates.io-index"
26
+ checksum = "f9e772b3bcafe335042b5db010ab7c09013dad6eac4915c91d8d50902769f331"
27
  dependencies = [
28
  "actix-utils",
29
  "actix-web",
 
1028
 
1029
  [[package]]
1030
  name = "dhat"
1031
+ version = "0.3.3"
1032
  source = "registry+https://github.com/rust-lang/crates.io-index"
1033
+ checksum = "98cd11d84628e233de0ce467de10b8633f4ddaecafadefc86e13b84b8739b827"
1034
  dependencies = [
1035
  "backtrace",
1036
  "lazy_static",
 
1848
 
1849
  [[package]]
1850
  name = "libc"
1851
+ version = "0.2.153"
1852
  source = "registry+https://github.com/rust-lang/crates.io-index"
1853
+ checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
1854
 
1855
  [[package]]
1856
  name = "libmimalloc-sys"
 
1926
 
1927
  [[package]]
1928
  name = "log"
1929
+ version = "0.4.21"
1930
  source = "registry+https://github.com/rust-lang/crates.io-index"
1931
+ checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
1932
 
1933
  [[package]]
1934
  name = "lua-src"
 
2968
 
2969
  [[package]]
2970
  name = "reqwest"
2971
+ version = "0.11.24"
2972
  source = "registry+https://github.com/rust-lang/crates.io-index"
2973
+ checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251"
2974
  dependencies = [
2975
  "async-compression",
2976
  "base64 0.21.5",
 
2995
  "serde",
2996
  "serde_json",
2997
  "serde_urlencoded 0.7.1",
2998
+ "sync_wrapper",
2999
  "system-configuration",
3000
  "tokio 1.35.1",
3001
  "tokio-rustls",
 
3055
 
3056
  [[package]]
3057
  name = "rustix"
3058
+ version = "0.38.31"
3059
  source = "registry+https://github.com/rust-lang/crates.io-index"
3060
+ checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949"
3061
  dependencies = [
3062
  "bitflags 2.4.1",
3063
  "errno",
 
3508
  "unicode-ident",
3509
  ]
3510
 
3511
+ [[package]]
3512
+ name = "sync_wrapper"
3513
+ version = "0.1.2"
3514
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3515
+ checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
3516
+
3517
  [[package]]
3518
  name = "synstructure"
3519
  version = "0.12.6"
 
3565
 
3566
  [[package]]
3567
  name = "tempfile"
3568
+ version = "3.10.1"
3569
  source = "registry+https://github.com/rust-lang/crates.io-index"
3570
+ checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1"
3571
  dependencies = [
3572
  "cfg-if 1.0.0",
3573
  "fastrand",
 
3574
  "rustix",
3575
  "windows-sys 0.52.0",
3576
  ]
 
4162
 
4163
  [[package]]
4164
  name = "websurfx"
4165
+ version = "1.9.20"
4166
  dependencies = [
4167
  "actix-cors",
4168
  "actix-files",
 
4191
  "mlua",
4192
  "redis",
4193
  "regex",
4194
+ "reqwest 0.11.24",
4195
  "rusty-hook",
4196
  "scraper",
4197
  "serde",
Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
  [package]
2
  name = "websurfx"
3
- version = "1.9.4"
4
  edition = "2021"
5
  description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
6
  repository = "https://github.com/neon-mmd/websurfx"
@@ -13,7 +13,7 @@ bench = false
13
  path = "src/bin/websurfx.rs"
14
 
15
  [dependencies]
16
- reqwest = {version="0.11.22", default-features=false, features=["rustls-tls","brotli", "gzip"]}
17
  tokio = {version="1.32.0",features=["rt-multi-thread","macros"], default-features = false}
18
  serde = {version="1.0.196", default-features=false, features=["derive"]}
19
  serde_json = {version="1.0.109", default-features=false}
@@ -21,10 +21,10 @@ maud = {version="0.25.0", default-features=false, features=["actix-web"]}
21
  scraper = {version="0.18.1", default-features = false}
22
  actix-web = {version="4.4.0", features = ["cookies", "macros", "compress-brotli"], default-features=false}
23
  actix-files = {version="0.6.5", default-features=false}
24
- actix-cors = {version="0.6.4", default-features=false}
25
  fake-useragent = {version="0.1.3", default-features=false}
26
  env_logger = {version="0.11.1", default-features=false}
27
- log = {version="0.4.20", default-features=false}
28
  mlua = {version="0.9.1", features=["luajit", "vendored"], default-features=false}
29
  redis = {version="0.24.0", features=["tokio-comp","connection-manager"], default-features = false, optional = true}
30
  blake3 = {version="1.5.0", default-features=false}
@@ -33,7 +33,7 @@ async-trait = {version="0.1.76", default-features=false}
33
  regex = {version="1.9.4", features=["perf"], default-features = false}
34
  smallvec = {version="1.13.1", features=["union", "serde"], default-features=false}
35
  futures = {version="0.3.28", default-features=false}
36
- dhat = {version="0.3.2", optional = true, default-features=false}
37
  mimalloc = { version = "0.1.38", default-features = false }
38
  async-once-cell = {version="0.5.3", default-features=false}
39
  actix-governor = {version="0.5.0", default-features=false}
@@ -47,7 +47,7 @@ cfg-if = {version="1.0.0", default-features=false,optional=true}
47
  [dev-dependencies]
48
  rusty-hook = {version="^0.11.2", default-features=false}
49
  criterion = {version="0.5.1", default-features=false}
50
- tempfile = {version="3.8.0", default-features=false}
51
 
52
  [build-dependencies]
53
  lightningcss = {version="1.0.0-alpha.52", default-features=false, features=["grid"]}
 
1
  [package]
2
  name = "websurfx"
3
+ version = "1.9.20"
4
  edition = "2021"
5
  description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
6
  repository = "https://github.com/neon-mmd/websurfx"
 
13
  path = "src/bin/websurfx.rs"
14
 
15
  [dependencies]
16
+ reqwest = {version="0.11.24", default-features=false, features=["rustls-tls","brotli", "gzip"]}
17
  tokio = {version="1.32.0",features=["rt-multi-thread","macros"], default-features = false}
18
  serde = {version="1.0.196", default-features=false, features=["derive"]}
19
  serde_json = {version="1.0.109", default-features=false}
 
21
  scraper = {version="0.18.1", default-features = false}
22
  actix-web = {version="4.4.0", features = ["cookies", "macros", "compress-brotli"], default-features=false}
23
  actix-files = {version="0.6.5", default-features=false}
24
+ actix-cors = {version="0.7.0", default-features=false}
25
  fake-useragent = {version="0.1.3", default-features=false}
26
  env_logger = {version="0.11.1", default-features=false}
27
+ log = {version="0.4.21", default-features=false}
28
  mlua = {version="0.9.1", features=["luajit", "vendored"], default-features=false}
29
  redis = {version="0.24.0", features=["tokio-comp","connection-manager"], default-features = false, optional = true}
30
  blake3 = {version="1.5.0", default-features=false}
 
33
  regex = {version="1.9.4", features=["perf"], default-features = false}
34
  smallvec = {version="1.13.1", features=["union", "serde"], default-features=false}
35
  futures = {version="0.3.28", default-features=false}
36
+ dhat = {version="0.3.3", optional = true, default-features=false}
37
  mimalloc = { version = "0.1.38", default-features = false }
38
  async-once-cell = {version="0.5.3", default-features=false}
39
  actix-governor = {version="0.5.0", default-features=false}
 
47
  [dev-dependencies]
48
  rusty-hook = {version="^0.11.2", default-features=false}
49
  criterion = {version="0.5.1", default-features=false}
50
+ tempfile = {version="3.10.1", default-features=false}
51
 
52
  [build-dependencies]
53
  lightningcss = {version="1.0.0-alpha.52", default-features=false, features=["grid"]}
dev.Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Create Builder image
2
- FROM --platform=$BUILDPLATFORM rust:1.75.0-alpine3.18
3
 
4
  # Install required dependencies
5
  RUN apk add --no-cache alpine-sdk musl-dev g++ make libcrypto3 libressl-dev perl build-base
 
1
  # Create Builder image
2
+ FROM --platform=$BUILDPLATFORM rust:1.76.0-alpine3.18
3
 
4
  # Install required dependencies
5
  RUN apk add --no-cache alpine-sdk musl-dev g++ make libcrypto3 libressl-dev perl build-base
docs/instances.md CHANGED
@@ -4,10 +4,12 @@
4
 
5
  This page provides a list of `Websurfx` instances provided by us and our community.
6
 
7
- |URL|Network|Version|Location|Behind Cloudflare?|Maintained By|TLS|IPv6|Comment|
8
  |-|-|-|-|-|-|-|-|-|
9
- |https://websurfx.co/|www|edge|🇺🇸 US|||✅|❌||
10
- |https://websurfx.onrender.com/|www|edge|🇺🇸 US|||✅|❌||
11
- |https://alamin655-websurfx.hf.space/|www|v0.21.4|🇺🇸 US||[websurfx project](https://github.com/neon-mmd/websurfx)|✅|❌||
 
 
12
 
13
  [⬅️ Go back to Home](./README.md)
 
4
 
5
  This page provides a list of `Websurfx` instances provided by us and our community.
6
 
7
+ |URL|Network|Version|Location|Status|Maintained By|TLS|IPv6|Comment|
8
  |-|-|-|-|-|-|-|-|-|
9
+ |https://websurfx.pp.ua|www|rolling|🇺🇸 US|<a href="https://status.websurfx.pp.ua"><img src="https://img.shields.io/website?url=https%3A%2F%2Fwebsurfx.pp.ua&label=Status"></a>|[Websurfx Project](https://github.com/neon-mmd/websurfx)|✅|✅||
10
+ |https://alamin655-spacex.hf.space|www|rolling|🇺🇸 US|<a href="https://status.websurfx.pp.ua"><img src="https://img.shields.io/website?url=https%3A%2F%2Falamin655-spacex.hf.space&label=Status"></a>|[Websurfx Project](https://github.com/neon-mmd/websurfx)|✅|❌||
11
+ |https://websurfx.instance.pp.ua|www|rolling|🇺🇸 US|<a href="https://status.websurfx.pp.ua"><img src="https://img.shields.io/website?url=https%3A%2F%2Fwebsurfx.instance.pp.ua&label=Status"></a>|[Websurfx Project](https://github.com/neon-mmd/websurfx)|✅|✅||
12
+ |https://alamin655-surfx.hf.space|www|stable|🇺🇸 US|<a href="https://status.websurfx.pp.ua"><img src="https://img.shields.io/website?url=https%3A%2F%2Falamin655-surfx.hf.space&label=Status"></a>|[Websurfx Project](https://github.com/neon-mmd/websurfx)|✅|❌||
13
+
14
 
15
  [⬅️ Go back to Home](./README.md)
public/static/themes/simple.css CHANGED
@@ -1,8 +1,11 @@
1
  /* @import url('./catppuccin-mocha.css'); */
2
  @font-face {
3
  font-family: Rubik;
4
- src: url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap');
5
- fallback: sans-serif;
 
 
 
6
  }
7
 
8
  * {
@@ -20,7 +23,7 @@ body {
20
  flex-direction: column;
21
  justify-content: space-between;
22
  align-items: center;
23
- height: 100vh;
24
  font-family: Rubik, sans-serif;
25
  background-color: var(--background-color);
26
  }
@@ -459,39 +462,121 @@ footer div {
459
  font-size: 1.5rem;
460
  color: var(--foreground-color);
461
  padding-bottom: 10px;
 
 
 
 
 
462
  }
463
 
464
  .about-container article h1 {
465
  color: var(--color-two);
466
- font-size: 2.8rem;
467
  }
468
 
469
- .about-container article div {
470
- padding-bottom: 15px;
 
 
471
  }
472
 
473
- .about-container a {
474
- color: var(--color-three);
475
  }
476
 
477
- .about-container article h2 {
478
- color: var(--color-three);
479
- font-size: 1.8rem;
480
- padding-bottom: 10px;
 
 
 
 
 
 
 
 
481
  }
482
 
483
- .about-container p {
484
- color: var(--foreground-color);
485
- font-size: 1.6rem;
486
- padding-bottom: 10px;
487
  }
488
 
489
- .about-container h3 {
490
- font-size: 1.5rem;
 
 
 
 
 
 
 
 
 
491
  }
492
 
493
  .about-container {
494
  width: 80%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
495
  }
496
 
497
  /* Styles for the settings page */
@@ -730,3 +815,47 @@ input:checked + .slider::before {
730
  .slider.round::before {
731
  border-radius: 50%;
732
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /* @import url('./catppuccin-mocha.css'); */
2
  @font-face {
3
  font-family: Rubik;
4
+ font-style: normal;
5
+ font-weight: 200 600;
6
+ font-stretch: 0% 200%;
7
+ font-display: swap;
8
+ src: url("https://fonts.gstatic.com/s/rubik/v28/iJWKBXyIfDnIV7nErXyi0A.woff2") format('woff2');
9
  }
10
 
11
  * {
 
23
  flex-direction: column;
24
  justify-content: space-between;
25
  align-items: center;
26
+ min-height: 100vh;
27
  font-family: Rubik, sans-serif;
28
  background-color: var(--background-color);
29
  }
 
462
  font-size: 1.5rem;
463
  color: var(--foreground-color);
464
  padding-bottom: 10px;
465
+ max-width: 1100px;
466
+ margin: 14rem auto;
467
+ display: flex;
468
+ flex-direction: column;
469
+ row-gap: 100px;
470
  }
471
 
472
  .about-container article h1 {
473
  color: var(--color-two);
474
+ font-size: 4.5rem;
475
  }
476
 
477
+ .about-container article .logo-container {
478
+ display: flex;
479
+ align-items: center;
480
+ justify-content: center;
481
  }
482
 
483
+ .about-container article .logo-container svg {
484
+ width: clamp(200px, 530px, 815px);
485
  }
486
 
487
+ .about-container article .text-block {
488
+ box-shadow: 0 0 0 100vmax var(--foreground-color);
489
+ background-color: var(--foreground-color);
490
+ clip-path: inset(0 -100vmax);
491
+ padding: 90px 0;
492
+ display: flex;
493
+ gap: 40px;
494
+ align-items: center;
495
+ justify-content: center;
496
+ flex-direction: column;
497
+ text-align: center;
498
+ color: var(--background-color);
499
  }
500
 
501
+ .about-container article .text-block .text-block-title {
502
+ font-size: 64px;
503
+ font-weight: 500;
 
504
  }
505
 
506
+ .hero-text-container {
507
+ width: 860px;
508
+ }
509
+
510
+ .hero-text {
511
+ font-size: 45px;
512
+ font-weight: 200;
513
+ }
514
+
515
+ .about-container a {
516
+ color: var(--color-three);
517
  }
518
 
519
  .about-container {
520
  width: 80%;
521
+ margin-bottom: 140px;
522
+ }
523
+
524
+ .feature-list {
525
+ padding: 35px;
526
+ display: flex;
527
+ align-items: center;
528
+ justify-content: center;
529
+ flex-direction: column;
530
+ row-gap: 60px;
531
+ }
532
+
533
+ .feature-list-title {
534
+ text-align: center;
535
+ font-size: 64px;
536
+ font-weight: 500;
537
+ }
538
+
539
+ .features {
540
+ display: grid;
541
+ grid-template-columns: repeat(3, 1fr);
542
+ gap: 40px;
543
+ }
544
+
545
+ .feature-card {
546
+ background-color: var(--foreground-color);
547
+ color: var(--background-color);
548
+ text-align: center;
549
+ display: flex;
550
+ padding: 30px;
551
+ border-radius: 24px;
552
+ flex-direction: column;
553
+ align-items: center;
554
+ justify-content: center;
555
+ gap: 15px;
556
+ }
557
+
558
+ .feature-card-header {
559
+ display: flex;
560
+ align-items: center;
561
+ justify-content: center;
562
+ flex-direction: column;
563
+ row-gap: 15px;
564
+ }
565
+
566
+ .feature-card-header h4 {
567
+ font-size: 33px;
568
+ font-weight: 500;
569
+ }
570
+
571
+ .feature-card-body p {
572
+ font-size: 20px;
573
+ font-weight: 200;
574
+ }
575
+
576
+ .about-footnote {
577
+ font-size: 24px;
578
+ text-align: center;
579
+ color: var(--foreground-color);
580
  }
581
 
582
  /* Styles for the settings page */
 
815
  .slider.round::before {
816
  border-radius: 50%;
817
  }
818
+
819
+ @media screen and (width <= 1136px) {
820
+ .hero-text-container {
821
+ width: unset;
822
+ }
823
+
824
+ .features {
825
+ grid-template-columns: repeat(2, 1fr);
826
+ }
827
+ }
828
+
829
+ @media screen and (width <= 706px) {
830
+ .about-container article .logo-container svg {
831
+ width: clamp(200px, 290px, 815px);
832
+ }
833
+
834
+ .about-container article .text-block .text-block-title {
835
+ font-size: 33px;
836
+ }
837
+
838
+ .hero-text {
839
+ font-size: 22px;
840
+ }
841
+
842
+ .about-container {
843
+ width: unset;
844
+ }
845
+
846
+ .feature-list-title {
847
+ font-size: 33px;
848
+ }
849
+
850
+ .features {
851
+ grid-template-columns: 1fr;
852
+ }
853
+
854
+ .feature-list {
855
+ padding: 35px 0;
856
+ }
857
+
858
+ .feature-card {
859
+ border-radius: 0;
860
+ }
861
+ }
src/config/parser.rs CHANGED
@@ -30,6 +30,8 @@ pub struct Config {
30
  pub logging: bool,
31
  /// It stores the option to whether enable or disable debug mode.
32
  pub debug: bool,
 
 
33
  /// It stores all the engine names that were enabled by the user.
34
  pub upstream_search_engines: HashMap<String, bool>,
35
  /// It stores the time (secs) which controls the server request timeout.
@@ -68,6 +70,7 @@ impl Config {
68
 
69
  let debug: bool = globals.get::<_, bool>("debug")?;
70
  let logging: bool = globals.get::<_, bool>("logging")?;
 
71
 
72
  if !logging_initialized {
73
  set_logging_level(debug, logging);
@@ -125,6 +128,7 @@ impl Config {
125
  },
126
  logging,
127
  debug,
 
128
  upstream_search_engines: globals
129
  .get::<_, HashMap<String, bool>>("upstream_search_engines")?,
130
  request_timeout: globals.get::<_, u8>("request_timeout")?,
 
30
  pub logging: bool,
31
  /// It stores the option to whether enable or disable debug mode.
32
  pub debug: bool,
33
+ /// It toggles whether to use adaptive HTTP windows
34
+ pub adaptive_window: bool,
35
  /// It stores all the engine names that were enabled by the user.
36
  pub upstream_search_engines: HashMap<String, bool>,
37
  /// It stores the time (secs) which controls the server request timeout.
 
70
 
71
  let debug: bool = globals.get::<_, bool>("debug")?;
72
  let logging: bool = globals.get::<_, bool>("logging")?;
73
+ let adaptive_window: bool = globals.get::<_, bool>("adaptive_window")?;
74
 
75
  if !logging_initialized {
76
  set_logging_level(debug, logging);
 
128
  },
129
  logging,
130
  debug,
131
+ adaptive_window,
132
  upstream_search_engines: globals
133
  .get::<_, HashMap<String, bool>>("upstream_search_engines")?,
134
  request_timeout: globals.get::<_, u8>("request_timeout")?,
src/results/aggregator.rs CHANGED
@@ -2,6 +2,7 @@
2
  //! search engines and then removes duplicate results.
3
 
4
  use super::user_agent::random_user_agent;
 
5
  use crate::handler::{file_path, FileType};
6
  use crate::models::{
7
  aggregation_models::{EngineErrorInfo, SearchResult, SearchResults},
@@ -66,18 +67,17 @@ type FutureVec = Vec<JoinHandle<Result<HashMap<String, SearchResult>, Report<Eng
66
  pub async fn aggregate(
67
  query: &str,
68
  page: u32,
69
- random_delay: bool,
70
- debug: bool,
71
  upstream_search_engines: &[EngineHandler],
72
- request_timeout: u8,
73
  safe_search: u8,
74
  ) -> Result<SearchResults, Box<dyn std::error::Error>> {
75
  let client = CLIENT.get_or_init(|| {
76
  ClientBuilder::new()
77
- .timeout(Duration::from_secs(request_timeout as u64)) // Add timeout to request to avoid DDOSing the server
78
  .https_only(true)
79
  .gzip(true)
80
  .brotli(true)
 
81
  .build()
82
  .unwrap()
83
  });
@@ -85,7 +85,7 @@ pub async fn aggregate(
85
  let user_agent: &str = random_user_agent();
86
 
87
  // Add a random delay before making the request.
88
- if random_delay || !debug {
89
  let nanos = SystemTime::now().duration_since(UNIX_EPOCH)?.subsec_nanos() as f32;
90
  let delay = ((nanos / 1_0000_0000 as f32).floor() as u64) + 1;
91
  tokio::time::sleep(Duration::from_secs(delay)).await;
 
2
  //! search engines and then removes duplicate results.
3
 
4
  use super::user_agent::random_user_agent;
5
+ use crate::config::parser::Config;
6
  use crate::handler::{file_path, FileType};
7
  use crate::models::{
8
  aggregation_models::{EngineErrorInfo, SearchResult, SearchResults},
 
67
  pub async fn aggregate(
68
  query: &str,
69
  page: u32,
70
+ config: &Config,
 
71
  upstream_search_engines: &[EngineHandler],
 
72
  safe_search: u8,
73
  ) -> Result<SearchResults, Box<dyn std::error::Error>> {
74
  let client = CLIENT.get_or_init(|| {
75
  ClientBuilder::new()
76
+ .timeout(Duration::from_secs(config.request_timeout as u64)) // Add timeout to request to avoid DDOSing the server
77
  .https_only(true)
78
  .gzip(true)
79
  .brotli(true)
80
+ .http2_adaptive_window(config.adaptive_window)
81
  .build()
82
  .unwrap()
83
  });
 
85
  let user_agent: &str = random_user_agent();
86
 
87
  // Add a random delay before making the request.
88
+ if config.aggregator.random_delay || !config.debug {
89
  let nanos = SystemTime::now().duration_since(UNIX_EPOCH)?.subsec_nanos() as f32;
90
  let delay = ((nanos / 1_0000_0000 as f32).floor() as u64) + 1;
91
  tokio::time::sleep(Duration::from_secs(delay)).await;
src/server/routes/search.rs CHANGED
@@ -209,14 +209,12 @@ async fn results(
209
  aggregate(
210
  query,
211
  page,
212
- config.aggregator.random_delay,
213
- config.debug,
214
  &search_settings
215
  .engines
216
  .iter()
217
  .filter_map(|engine| EngineHandler::new(engine).ok())
218
  .collect::<Vec<EngineHandler>>(),
219
- config.request_timeout,
220
  safe_search_level,
221
  )
222
  .await?
 
209
  aggregate(
210
  query,
211
  page,
212
+ config,
 
213
  &search_settings
214
  .engines
215
  .iter()
216
  .filter_map(|engine| EngineHandler::new(engine).ok())
217
  .collect::<Vec<EngineHandler>>(),
 
218
  safe_search_level,
219
  )
220
  .await?
src/templates/views/about.rs CHANGED
@@ -1,6 +1,6 @@
1
  //! A module that handles the view for the about page in the `websurfx` frontend.
2
 
3
- use maud::{html, Markup};
4
 
5
  use crate::templates::partials::{footer::footer, header::header};
6
 
@@ -15,33 +15,141 @@ use crate::templates::partials::{footer::footer, header::header};
15
  ///
16
  /// It returns the compiled html markup code as a result.
17
  pub fn about(colorscheme: &str, theme: &str, animation: &Option<String>) -> Markup {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  html!(
19
  (header(colorscheme, theme, animation))
20
  main class="about-container"{
21
  article {
22
- div{
23
- h1{"Websurfx"}
24
- hr size="4" width="100%" color="#a6e3a1"{}
25
- }
26
- p{"A modern-looking, lightning-fast, privacy-respecting, secure meta search engine written in Rust. It provides a fast and secure search experience while respecting user privacy."br{}" It aggregates results from multiple search engines and presents them in an unbiased manner, filtering out trackers and ads."
27
  }
28
 
29
- h2{"Some of the Top Features:"}
 
 
 
 
 
 
 
 
 
30
 
31
- ul{strong{"Lightning fast "}"- Results load within milliseconds for an instant search experience."}
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
- ul{strong{"Secure search"}" - All searches are performed over an encrypted connection to prevent snooping."}
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
- ul{strong{"Ad free results"}" - All search results are ad free and clutter free for a clean search experience."}
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
- ul{strong{"Privacy focused"}" - Websurfx does not track, store or sell your search data. Your privacy is our priority."}
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
- ul{strong{"Free and Open source"}" - The entire project's code is open source and available for free on "{a href="https://github.com/neon-mmd/websurfx"{"GitHub"}}" under an GNU Affero General Public License."}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
- ul{strong{"Highly customizable"}" - Websurfx comes with 9 built-in color themes and supports creating custom themes effortlessly."}
42
  }
43
 
44
- h3{"Devoloped by: "{a href="https://github.com/neon-mmd/websurfx"{"Websurfx team"}}}
45
  }
46
  (footer())
47
  )
 
1
  //! A module that handles the view for the about page in the `websurfx` frontend.
2
 
3
+ use maud::{html, Markup, PreEscaped};
4
 
5
  use crate::templates::partials::{footer::footer, header::header};
6
 
 
15
  ///
16
  /// It returns the compiled html markup code as a result.
17
  pub fn about(colorscheme: &str, theme: &str, animation: &Option<String>) -> Markup {
18
+ let logo_svg = r#"
19
+ <svg viewBox="0 0 173 57" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
20
+ <path d="M77.8201 21.4277L73.4513 35.5049H70.3855L67.5496 25.1067L64.7137 35.5049H61.6479L57.2536 21.4277H60.2172L63.1553 32.7457L66.1444 21.4277H69.1847L72.0461 32.6946L74.9586 21.4277H77.8201ZM92.8986 28.1214C92.8986 28.6494 92.8645 29.1263 92.7964 29.5521H82.0405C82.1257 30.6762 82.543 31.5789 83.2924 32.2602C84.0418 32.9415 84.9616 33.2822 86.0516 33.2822C87.6186 33.2822 88.7257 32.6264 89.3729 31.3149H92.5154C92.0896 32.6094 91.3146 33.6739 90.1905 34.5085C89.0834 35.326 87.7038 35.7348 86.0516 35.7348C84.7061 35.7348 83.4968 35.4368 82.4238 34.8406C81.3678 34.2275 80.5332 33.3758 79.92 32.2858C79.3239 31.1787 79.0258 29.9013 79.0258 28.4535C79.0258 27.0058 79.3154 25.7369 79.8945 24.6468C80.4906 23.5397 81.3167 22.6881 82.3727 22.092C83.4457 21.4958 84.672 21.1978 86.0516 21.1978C87.3801 21.1978 88.5639 21.4873 89.6029 22.0664C90.6418 22.6455 91.4509 23.4631 92.03 24.5191C92.6091 25.558 92.8986 26.7588 92.8986 28.1214ZM89.8583 27.2016C89.8413 26.1286 89.4581 25.2685 88.7087 24.6213C87.9592 23.974 87.031 23.6504 85.9239 23.6504C84.919 23.6504 84.0589 23.974 83.3435 24.6213C82.6281 25.2515 82.2023 26.1116 82.0661 27.2016H89.8583ZM98.6773 23.5227C99.1713 22.8414 99.844 22.2878 100.696 21.862C101.564 21.4192 102.527 21.1978 103.583 21.1978C104.826 21.1978 105.95 21.4958 106.955 22.092C107.96 22.6881 108.752 23.5397 109.331 24.6468C109.91 25.7369 110.2 26.9887 110.2 28.4024C110.2 29.8161 109.91 31.085 109.331 32.2091C108.752 33.3162 107.951 34.1849 106.929 34.8151C105.925 35.4282 104.809 35.7348 103.583 35.7348C102.493 35.7348 101.522 35.5219 100.67 35.0961C99.8355 34.6703 99.1713 34.1253 98.6773 33.461V35.5049H95.7648V16.5991H98.6773V23.5227ZM107.236 28.4024C107.236 27.4316 107.032 26.597 106.623 25.8987C106.231 25.1833 105.703 24.6468 105.039 24.2891C104.392 23.9144 103.693 23.7271 102.944 23.7271C102.212 23.7271 101.513 23.9144 100.849 24.2891C100.202 24.6638 99.6737 25.2089 99.265 25.9242C98.8732 26.6396 98.6773 27.4827 98.6773 28.4535C98.6773 29.4244 98.8732 30.276 99.265 31.0084C99.6737 31.7237 100.202 32.2688 100.849 32.6435C101.513 33.0182 102.212 33.2055 102.944 33.2055C103.693 33.2055 104.392 33.0182 105.039 32.6435C105.703 32.2517 106.231 31.6897 106.623 30.9573C107.032 30.2249 107.236 29.3733 107.236 28.4024ZM118.19 35.7348C117.082 35.7348 116.086 35.5389 115.2 35.1472C114.332 34.7384 113.642 34.1934 113.131 33.5121C112.62 32.8138 112.347 32.0388 112.313 31.1872H115.328C115.379 31.7833 115.66 32.2858 116.171 32.6946C116.699 33.0863 117.355 33.2822 118.138 33.2822C118.956 33.2822 119.586 33.1289 120.029 32.8223C120.489 32.4987 120.719 32.0899 120.719 31.596C120.719 31.068 120.463 30.6762 119.952 30.4207C119.458 30.1653 118.666 29.8842 117.576 29.5777C116.52 29.2881 115.66 29.0071 114.996 28.7346C114.332 28.462 113.753 28.0447 113.259 27.4827C112.782 26.9206 112.543 26.1797 112.543 25.26C112.543 24.5105 112.765 23.8293 113.208 23.2161C113.65 22.5859 114.281 22.092 115.098 21.7343C115.933 21.3766 116.887 21.1978 117.96 21.1978C119.561 21.1978 120.847 21.6065 121.817 22.4241C122.805 23.2246 123.333 24.3232 123.401 25.7198H120.489C120.438 25.0896 120.182 24.5872 119.722 24.2125C119.263 23.8378 118.641 23.6504 117.857 23.6504C117.091 23.6504 116.503 23.7952 116.095 24.0847C115.686 24.3743 115.481 24.7575 115.481 25.2344C115.481 25.6091 115.618 25.9242 115.89 26.1797C116.163 26.4352 116.495 26.6396 116.887 26.7929C117.278 26.9291 117.857 27.108 118.624 27.3294C119.646 27.6019 120.48 27.8829 121.128 28.1725C121.792 28.445 122.362 28.8538 122.839 29.3988C123.316 29.9438 123.563 30.6677 123.58 31.5704C123.58 32.3709 123.359 33.0863 122.916 33.7165C122.473 34.3467 121.843 34.8406 121.025 35.1983C120.225 35.556 119.28 35.7348 118.19 35.7348ZM139.476 21.4277V35.5049H136.563V33.8442C136.104 34.4233 135.499 34.8832 134.75 35.2239C134.017 35.5475 133.234 35.7093 132.399 35.7093C131.292 35.7093 130.296 35.4793 129.41 35.0195C128.541 34.5596 127.851 33.8783 127.34 32.9756C126.847 32.0729 126.6 30.9828 126.6 29.7054V21.4277H129.487V29.2711C129.487 30.5315 129.802 31.5023 130.432 32.1836C131.062 32.8478 131.922 33.18 133.012 33.18C134.102 33.18 134.962 32.8478 135.593 32.1836C136.24 31.5023 136.563 30.5315 136.563 29.2711V21.4277H139.476ZM146.231 23.4716C146.657 22.7562 147.219 22.2027 147.918 21.8109C148.633 21.4022 149.476 21.1978 150.447 21.1978V24.2125H149.706C148.565 24.2125 147.696 24.502 147.1 25.0811C146.521 25.6602 146.231 26.6651 146.231 28.0958V35.5049H143.319V21.4277H146.231V23.4716ZM159.026 23.8037H156.42V35.5049H153.482V23.8037H151.821V21.4277H153.482V20.4313C153.482 18.8133 153.907 17.638 154.759 16.9056C155.628 16.1562 156.982 15.7815 158.821 15.7815V18.2086C157.936 18.2086 157.314 18.3789 156.956 18.7196C156.599 19.0432 156.42 19.6138 156.42 20.4313V21.4277H159.026V23.8037ZM167.636 28.3769L172.184 35.5049H168.888L165.848 30.7273L162.986 35.5049H159.946L164.494 28.5813L159.946 21.4277H163.242L166.282 26.2053L169.144 21.4277H172.184L167.636 28.3769Z" fill="currentColor"/>
21
+ <path d="M2.21486 42.7894C1.15271 43.0507 0.550463 44.1151 1.00616 45.1192C4.17619 52.1035 11.5005 54.9673 23.3646 52.0493C35.2399 49.1285 47.5128 41.4358 47.2254 33.7293C47.1854 32.6562 46.0226 32.0146 44.9605 32.2759L2.21486 42.7894Z" fill="currentColor"/>
22
+ <path d="M20.1227 10.0027C21.9192 10.8048 23.7313 11.7606 25.4259 12.8819C28.7827 15.1031 31.9178 18.1341 33.329 22.1366C34.1626 24.5009 34.0742 26.7513 33.2144 28.7679C32.4048 30.6666 30.9903 32.178 29.4212 33.3664C37.6699 31.0439 47.0335 26.0679 44.0686 17.608C40.9417 8.68557 29.3768 3.38405 21.266 1.04683C19.3981 0.508566 17.8191 2.37853 18.4252 4.22557C18.9773 5.90835 19.5596 7.85665 20.1227 10.0027Z" fill="currentColor"/>
23
+ <path d="M8.27125 34.3558C8.02834 30.0503 7.01551 25.8501 5.987 22.6653C5.38101 20.7888 6.95924 18.8318 8.8458 19.4057C13.6444 20.8655 19.4581 23.6235 21.1736 27.928C23.1268 32.8287 16.4467 35.584 11.1405 36.7375C9.66674 37.0579 8.35621 35.8616 8.27125 34.3558Z" fill="currentColor"/>
24
+ <path d="M12.5601 18.017C14.2332 18.6725 15.9372 19.4786 17.5019 20.4515C19.9805 21.9927 22.38 24.1208 23.5241 26.9914C24.2516 28.8168 24.2152 30.6223 23.4834 32.2482C23.1213 33.0529 22.6157 33.7553 22.0354 34.3669C27.6731 32.3348 32.9532 28.6804 30.9428 22.9781C28.6334 16.428 20.4047 12.4027 14.1807 10.4674C12.3234 9.88988 10.7357 11.7563 11.3182 13.6121C11.7303 14.9248 12.1549 16.4076 12.5601 18.017Z" fill="currentColor" fill-opacity="0.89"/>
25
+ </svg>
26
+ "#;
27
+ let feature_lightning = r#"
28
+ <svg xmlns="http://www.w3.org/2000/svg" width="60" viewBox="0 0 256 256"><path fill="currentColor" d="m213.85 125.46l-112 120a8 8 0 0 1-13.69-7l14.66-73.33l-57.63-21.64a8 8 0 0 1-3-13l112-120a8 8 0 0 1 13.69 7l-14.7 73.41l57.63 21.61a8 8 0 0 1 3 12.95Z"/></svg>
29
+ "#;
30
+ let feature_secure = r#"
31
+ <svg xmlns="http://www.w3.org/2000/svg" width="60" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M1.25 12a5.75 5.75 0 0 1 10.8-2.75H21c.966 0 1.75.784 1.75 1.75v2.5a.75.75 0 0 1-.75.75h-2.25V16a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75v-1.75h-3.457A5.751 5.751 0 0 1 1.25 12M7 10a2 2 0 1 0 0 4a2 2 0 0 0 0-4" clip-rule="evenodd"/></svg>
32
+ "#;
33
+ let feature_clean = r#"
34
+ <svg xmlns="http://www.w3.org/2000/svg" width="60" viewBox="0 0 24 24"><path fill="currentColor" d="M8.665 15.735c.245.173.537.265.836.264v-.004a1.441 1.441 0 0 0 1.327-.872l.613-1.864a2.87 2.87 0 0 1 1.817-1.812l1.778-.578a1.442 1.442 0 0 0-.052-2.74l-1.755-.57a2.877 2.877 0 0 1-1.822-1.823l-.578-1.777a1.446 1.446 0 0 0-2.732.022l-.583 1.792a2.877 2.877 0 0 1-1.77 1.786l-1.777.57a1.444 1.444 0 0 0 .017 2.735l1.754.569a2.887 2.887 0 0 1 1.822 1.826l.578 1.775c.099.283.283.527.527.7m7.667 5.047a1.123 1.123 0 0 1-.41-.55l-.328-1.006a1.292 1.292 0 0 0-.821-.823l-.991-.323a1.148 1.148 0 0 1-.781-1.083a1.142 1.142 0 0 1 .771-1.08l1.006-.326a1.3 1.3 0 0 0 .8-.82l.324-.991a1.143 1.143 0 0 1 2.157-.021l.329 1.014a1.299 1.299 0 0 0 .82.816l.992.323a1.141 1.141 0 0 1 .039 2.165l-1.014.329a1.3 1.3 0 0 0-.818.822l-.322.989c-.078.23-.226.43-.425.57a1.14 1.14 0 0 1-1.328-.005"/></svg>
35
+ "#;
36
+ let feature_privacy = r#"
37
+ <svg xmlns="http://www.w3.org/2000/svg" width="60" viewBox="0 0 24 24"><path fill="currentColor" d="M4.19 4.47C3.47 4.79 3 5.51 3 6.3V11c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V6.3c0-.79-.47-1.51-1.19-1.83l-7-3.11c-.52-.23-1.11-.23-1.62 0zM12 7c.55 0 1 .45 1 1s-.45 1-1 1s-1-.45-1-1s.45-1 1-1m0 4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1v-4c0-.55.45-1 1-1"/></svg>
38
+ "#;
39
+ let feature_foss = r#"
40
+ <svg xmlns="http://www.w3.org/2000/svg" width="60" viewBox="0 0 24 24"><path fill="currentColor" d="M12.001 2c5.523 0 10 4.477 10 10c0 4.13-2.504 7.676-6.077 9.201l-2.518-6.55A3 3 0 0 0 12 9a3 3 0 0 0-1.404 5.652l-2.518 6.55A10.003 10.003 0 0 1 2 12C2 6.477 6.477 2 12 2"/></svg>
41
+ "#;
42
+ let feature_customizable = r#"
43
+ <svg xmlns="http://www.w3.org/2000/svg" width="60" viewBox="0 0 20 20"><path fill="currentColor" d="M18.33 3.57s.27-.8-.31-1.36c-.53-.52-1.22-.24-1.22-.24c-.61.3-5.76 3.47-7.67 5.57c-.86.96-2.06 3.79-1.09 4.82c.92.98 3.96-.17 4.79-1c2.06-2.06 5.21-7.17 5.5-7.79M1.4 17.65c2.37-1.56 1.46-3.41 3.23-4.64c.93-.65 2.22-.62 3.08.29c.63.67.8 2.57-.16 3.46c-1.57 1.45-4 1.55-6.15.89"/></svg>
44
+ "#;
45
  html!(
46
  (header(colorscheme, theme, animation))
47
  main class="about-container"{
48
  article {
49
+ div class="logo-container" {
50
+ (PreEscaped(logo_svg))
 
 
 
51
  }
52
 
53
+ div class="text-block" {
54
+ h3 class="text-block-title" {"Why Websurfx?"}
55
+ div class="hero-text-container" {
56
+ p class="hero-text" {"Websurfx aggregates results from multiple search engines and presents them in an unbiased manner, filtering out trackers and ads."}
57
+ }
58
+ }
59
+
60
+ div class="feature-list" {
61
+ h3 class="feature-list-title" {"Features"}
62
+ div class="features" {
63
 
64
+ div class="feature-card" {
65
+ div class="feature-card-header" {
66
+ div class="feature-card-icon" { (PreEscaped(feature_lightning)) }
67
+ h4 {
68
+ "Lightning-fast"
69
+ }
70
+ }
71
+ div class="feature-card-body" {
72
+ p {
73
+ "Results load within milliseconds for an instant search experience."
74
+ }
75
+ }
76
+ }
77
 
78
+ div class="feature-card" {
79
+ div class="feature-card-header" {
80
+ div class="feature-card-icon" { (PreEscaped(feature_secure)) }
81
+ h4 {
82
+ "Secure Search"
83
+ }
84
+ }
85
+ div class="feature-card-body" {
86
+ p {
87
+ "All searches are performed over an encrypted connection to prevent snooping."
88
+ }
89
+ }
90
+ }
91
 
92
+ div class="feature-card" {
93
+ div class="feature-card-header" {
94
+ div class="feature-card-icon" { (PreEscaped(feature_clean)) }
95
+ h4 {
96
+ "Ad-free Results"
97
+ }
98
+ }
99
+ div class="feature-card-body" {
100
+ p {
101
+ "All search results are ad free and clutter free for a clean search experience."
102
+ }
103
+ }
104
+ }
105
 
106
+ div class="feature-card" {
107
+ div class="feature-card-header" {
108
+ div class="feature-card-icon" { (PreEscaped(feature_privacy)) }
109
+ h4 {
110
+ "Privacy-focused"
111
+ }
112
+ }
113
+ div class="feature-card-body" {
114
+ p {
115
+ "Websurfx does not track, store or sell your search data. Your privacy is our priority."
116
+ }
117
+ }
118
+ }
119
 
120
+ div class="feature-card" {
121
+ div class="feature-card-header" {
122
+ div class="feature-card-icon" { (PreEscaped(feature_foss)) }
123
+ h4 {
124
+ "Free and Open-source"
125
+ }
126
+ }
127
+ div class="feature-card-body" {
128
+ p {
129
+ "The entire project's code is open source and available for free on "{a href="https://github.com/neon-mmd/websurfx"{"GitHub"}}"."
130
+ }
131
+ }
132
+ }
133
+
134
+ div class="feature-card" {
135
+ div class="feature-card-header" {
136
+ div class="feature-card-icon" { (PreEscaped(feature_customizable)) }
137
+ h4 {
138
+ "Highly Customizable"
139
+ }
140
+ }
141
+ div class="feature-card-body" {
142
+ p {
143
+ "Websurfx comes with 9 built-in color themes and supports creating custom themes effortlessly."
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
 
 
150
  }
151
 
152
+ h3 class="about-footnote" {"Developed by the "{a href="https://github.com/neon-mmd/websurfx"{"Websurfx team"}}}
153
  }
154
  (footer())
155
  )
websurfx/config.lua CHANGED
@@ -14,6 +14,8 @@ rate_limiter = {
14
  number_of_requests = 50, -- The number of request that are allowed within a provided time limit.
15
  time_limit = 3, -- The time limit in which the quantity of requests that should be accepted.
16
  }
 
 
17
 
18
  -- ### Search ###
19
  -- Filter results based on different levels. The levels provided are:
 
14
  number_of_requests = 50, -- The number of request that are allowed within a provided time limit.
15
  time_limit = 3, -- The time limit in which the quantity of requests that should be accepted.
16
  }
17
+ -- Set whether the server will use an adaptive/dynamic HTTPS window size, see https://httpwg.org/specs/rfc9113.html#fc-principles
18
+ https_adaptive_window_size = false
19
 
20
  -- ### Search ###
21
  -- Filter results based on different levels. The levels provided are: