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

Support setting important system configuration values during Docker initialization

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
docker, shell
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Bắt đầu với quy trình khởi tạo lần đầu dựa trên Docker và các lệnh OCC được nêu trong issue. So sánh hai cách tiếp cận được đề xuất để thiết lập maintenance_window_start và default_phone_region, sau đó xác định đường dẫn cấu hình nào được hỗ trợ. Hoàn thành khi một cài đặt Docker mới có thể cấu hình các giá trị này mà không cần gọi OCC thủ công sau khi cài đặt.

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

Mô tả

When deploying Nextcloud using the official Docker image, certain important system configuration values are not set by default, resulting in warnings or suboptimal behavior even after a clean installation. Two common examples are:

  1. maintenance_window_start
    Fresh installations display this warning in the system overview: "Server has no maintenance window start time configured."
    There is currently no way to set this value during the Docker-based setup. Instead, it must be configured manually via OCC: ./occ config:system:set maintenance_window_start --type=integer --value=1
  2. default_phone_region
    Fresh installations display in the system overview: "Your installation has no default phone region set"
    There is currently no way to set this value during the Docker-based setup. Instead, it must be configured manually via OCC: ./occ config:system:set default_phone_region --value="DE"
Expected Behavior

A fresh Nextcloud Docker installation should result in a fully configured, clean state, without requiring manual OCC calls for essential system settings.

Proposed Solution A

Introduce environment variables that allow setting all values at container startup which can result in warnings or messages on the "Security & setup warnings" page.

environment:
  - NEXTCLOUD_DEFAULT_PHONE_REGION=DE
  - NEXTCLOUD_MAINTENANCE_WINDOW_START=1
Proposed Solution B

Offer a documented and supported way to inject occ commands during first-time initialization.

Impact
  • Reduces post-installation steps
  • Improves automation and reproducibility
  • Avoids confusing warnings for new users
  • Aligns with Docker/container best practices

Thanks for your time and for maintaining the Docker image!

Ngôn ngữ chính
Shell
Star
7.4k
Fork
1.9k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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/docker

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

Issue tương tự

Thêm issue về Shell/Bash

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.