Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Preserving Source IP and webdav request conflict

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
apache, helm, kubernetes, nginx
Lĩnh vực
infrastructure, networking

Hướng nghiên cứu

Bắt đầu với các annotation ingress và yêu cầu curl OPTIONS được nêu trong issue, sau đó theo dõi cách ingress-nginx xử lý các yêu cầu preflight CORS cho endpoint WebDAV của Nextcloud. Hoàn tất khi xác định được một cấu hình giữ nguyên IP nguồn, duy trì CORS ở trạng thái bật, chuyển tiếp OPTIONS đến backend và trả về các header WebDAV như mong đợi.

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

Mô tả

Describe your Issue

Hi,

I am trying to set up WebDAV for Zotero, but I am running into an issue with ingress and CORS settings.

  • The deployment uses image.flavor: apache.
  • I followed the recommended settings: preserve the source IP and support CORS.
  • My current ingress annotations:
ingress:
  annotations:
   nginx.ingress.kubernetes.io/enable-cors: "true"
   nginx.ingress.kubernetes.io/cors-allow-headers: "X-Forwarded-For"

With this config, when Zotero or I use an OPTIONS request (for WebDAV capability check), the response is processed directly by the ingress (HTTP 204), and the request does not reach the backend (Nextcloud).
As a result, Zotero cannot detect the WebDAV capabilities correctly, since the WebDAV-specific headers (like DAV:) are not provided as expected. Though I can correctly synchronize webdav files, zotero must firstly do this step for checking before synchronizing.

Here is the curl test:

···bash
curl -i -X OPTIONS https://NEXTCLOUD-URL/remote.php/dav/files/USERNAME
···
Output

HTTP/2 204
...
access-control-allow-methods: GET, PUT, POST, DELETE, PATCH, OPTIONS, PROPFIND, PROPPATCH, COPY, MOVE, LOCK, UNLOCK
access-control-allow-headers: X-Forwarded-For
...

Question:
How should I configure ingress-nginx so that:

  • CORS is enabled,

  • Source IP is preserved,

  • AND the OPTIONS/WebDAV capability requests are actually forwarded to the backend (not intercepted by the ingress), so the WebDAV headers are correctly returned?

Any help is much appreciated!

Describe your Environment

  • Kubernetes distribution: rke2

  • Helm Version (or App that manages helm): it's independent to helm version

  • Helm Chart Version: it's independent to helm chart version

  • values.yaml:

# paste your values.yaml (anonymize any sensitive data)

Additional context, if any

Ngôn ngữ chính
Go Template
Star
536
Fork
316
Merge trung bình
4 ngày 16 giờ
Pull request đã merge (30 ngày)
2

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 nextcloud/helm

Tất cả issue của nextcloud/helm

Issue tương tự

Thêm issue về DevOps

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.