Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better configuration #288

Merged
merged 9 commits into from
Nov 5, 2023
Merged

Better configuration #288

merged 9 commits into from
Nov 5, 2023

Conversation

n0vad3v
Copy link
Member

@n0vad3v n0vad3v commented Nov 4, 2023

  • Added default configuration that user can start WebP Server Go without supplying all the configs in JSON or ENV, for example, a valid config can written as below:
{
  "PORT": "4444",
  "IMG_PATH": "./pics",
  "EXHAUST_PATH": "./exhaust",
  "ENABLE_EXTRA_PARAMS": false
}
  • Added ENV support for starting WebP Server Go, reflecting to config.json's key with prefix WEBP_, for example:
    • WEBP_HOST
    • WEBP_PORT
    • WEBP_IMG_PATH
    • WEBP_IMG_MAP is not supported at this time
  • Upgrade github.com/gofiber/fiber to 2.50.0
  • Bump version to 0.10.1

Copy link

github-actions bot commented Nov 4, 2023


ghcr.io/webp-sh/webp_server_go (debian 12.2)
============================================
Total: 0 (HIGH: 0, CRITICAL: 0)


usr/bin/webp-server (gobinary)
==============================
Total: 1 (HIGH: 1, CRITICAL: 0)

┌──────────────────┬────────────────┬──────────┬────────┬───────────────────┬───────────────┬──────────────────────────────────────────────┐
│     Library      │ Vulnerability  │ Severity │ Status │ Installed Version │ Fixed Version │                    Title                     │
├──────────────────┼────────────────┼──────────┼────────┼───────────────────┼───────────────┼──────────────────────────────────────────────┤
│ golang.org/x/net │ CVE-2023-39325 │ HIGH     │ fixed  │ v0.8.0            │ 0.17.0        │ rapid stream resets can cause excessive work │
│                  │                │          │        │                   │               │ (CVE-2023-44487)                             │
│                  │                │          │        │                   │               │ https://avd.aquasec.com/nvd/cve-2023-39325   │
└──────────────────┴────────────────┴──────────┴────────┴───────────────────┴───────────────┴──────────────────────────────────────────────┘

Copy link

github-actions bot commented Nov 4, 2023


ghcr.io/webp-sh/webp_server_go (debian 12.2)
============================================
Total: 0 (HIGH: 0, CRITICAL: 0)


Copy link

github-actions bot commented Nov 4, 2023


ghcr.io/webp-sh/webp_server_go (debian 12.2)
============================================
Total: 0 (HIGH: 0, CRITICAL: 0)


Copy link

github-actions bot commented Nov 5, 2023


ghcr.io/webp-sh/webp_server_go (debian 12.2)
============================================
Total: 0 (HIGH: 0, CRITICAL: 0)


1 similar comment
Copy link

github-actions bot commented Nov 5, 2023


ghcr.io/webp-sh/webp_server_go (debian 12.2)
============================================
Total: 0 (HIGH: 0, CRITICAL: 0)


Copy link

github-actions bot commented Nov 5, 2023


ghcr.io/webp-sh/webp_server_go (debian 12.2)
============================================
Total: 0 (HIGH: 0, CRITICAL: 0)


@n0vad3v n0vad3v merged commit 543af24 into master Nov 5, 2023
6 checks passed
@n0vad3v n0vad3v deleted the better-config branch November 5, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants