os-nginx: possibility to dis-/enable brotli within the template per server

Đang mở
#5,845 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
nginx, php
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading the os-nginx server template and its existing Brotli settings; the issue does not name a file or test, so locate these in the plugin first. The change should let each server enable or disable Brotli through the GUI and generated configuration. Check the result against the global setting and the per-server behavior described in the issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.
The recent security incidents have shown that it is beneficial to be able to disable certain modules globally in the Nginx reverse proxy within the Nginx plugin. This way, you can disable Brotli with a single click in the GUI, for example, instead of having to place the respective configuration in post-configuration files for each defined server. Placing it in the global configuration is currently not possible, since you can only define Brotli on or off once.

Describe the solution you'd like
^see problem description

Describe alternatives you've considered
/bin/sh -c 'for id in ab849699-245a-4fbeasdf6ddfa1a0 646ced87-d329-421e-basdfb021092d50 d8a060aa-73e4-40e4-bcasdfe47ff167 da7c93e3-6201-4a76-95f6-bc77sdfga; do mkdir -p "/usr/local/etc/nginx/${id}_post"; printf "%s\n" "brotli off;" "brotli_static off;" > "/usr/local/etc/nginx/${id}_post/99-disable-brotli.conf"; done'

Ngôn ngữ chính
PHP
Star
1.2k
Fork
926
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opnsense/plugins

Tất cả issue của opnsense/plugins

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.