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

Allow setting admin user email via environment variable during initial setup

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

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
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
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 bằng cách lần theo đường dẫn khởi tạo container xử lý NEXTCLOUD_ADMIN_USER và NEXTCLOUD_ADMIN_PASSWORD, sau đó xác định nơi một biến được đề xuất cho email quản trị viên sẽ được áp dụng. Tái hiện một bản cài đặt mới dựa trên Docker với các thiết lập SMTP và sử dụng “Basic settings → Test and verify email settings” để xác nhận rằng email đã được thiết lập và bài kiểm tra không còn thất bại với lỗi 400 đã báo cáo.

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

Mô tả

0. Needs triage enhancement feature: auto config (environment variables)

After a fresh Docker-based install with all SMTP settings supplied via environment variables, the send test via "Basic settings → Test and verify email settings" result in the following error:
AxiosError: Request failed with status code 400
This error message is not helpful and gives no indication of the root cause. It took me several days of debugging - including repeatedly verifying and adjusting the SMTP settings - before I realized that the problem was simply that the admin user had no email address set.

Expected Behavior

A fresh installation should allow specifying an admin email during setup. Without it, the email system silently fails with unclear error messages, despite all SMTP settings appearing correct.

Proposed Solution

Introduce a new environment variable, such as NEXTCLOUD_ADMIN_EMAIL, which can be used during container initialization to automatically assign an email address to the admin user.

environment:
  - NEXTCLOUD_ADMIN_USER=admin
  - NEXTCLOUD_ADMIN_PASSWORD=secret
  - [email protected]
Benefits
  • Prevents misleading errors like AxiosError: Request failed with status code 400 when testing email
  • Reduces time wasted on debugging SMTP configs
  • Streamlined, fully automated deployment
  • Enables functional email notifications from the start
  • Avoids manual post-installation steps

This would align well with the goals of containerization and automation. Thanks for considering!

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.