Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

v2.5.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@rustatian rustatian released this 11 Oct 17:15
7682e46
  • ✏️ Add a new option to the log plugin to configure the line ending. By default, used \n.

New option:

# Logs plugin settings
logs:
    (....)
    # Line ending
    #
    # Default: "\n".
    line_ending: "\n"
http:
  address: 127.0.0.1:55555
  max_request_size: 1024
  access_logs: true <-------- Access Logs ON/OFF
  middleware: []

  pool:
    num_workers: 2
    max_jobs: 0
    allocate_timeout: 60s
    destroy_timeout: 60s
  • ✏️ HTTP middleware to handle X-Sendfile header.
http:
  address: 127.0.0.1:44444
  max_request_size: 1024
  middleware: ["sendfile"] <----- NEW MIDDLEWARE

  pool:
    num_workers: 2
    max_jobs: 0
    allocate_timeout: 60s
    destroy_timeout: 60s
  • ✏️ Service plugin now supports env variables passing to the script/executable/binary/any:
service:
  some_service_1:
    command: "php test_files/loop_env.php"
    process_num: 1
    exec_timeout: 5s # s,m,h (seconds, minutes, hours)
    remain_after_exit: true
    env:  <----------------- NEW
      foo: "BAR"
    restart_sec: 1
  • ✏️ Server plugin can accept scripts (sh, bash, etc) in it's command configuration key:
server:
    command: "./script.sh OR sh script.sh" <--- UPDATED
    relay: "pipes"
    relay_timeout: "20s"

The script should start a worker as the last command. For the pipes, scripts should not contain programs, which can close stdin, stdout or stderr.

🩹 Fixes:

  • 🐛 Fix: grpc plugin fails to handle requests after calling reset.