Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Allow setting admin user email via environment variable during initial setup

Aperta
#2,425 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
docker, shell

Direzione di ricerca

Inizia tracciando il percorso di inizializzazione del container che gestisce NEXTCLOUD_ADMIN_USER e NEXTCLOUD_ADMIN_PASSWORD, quindi determina dove verrebbe applicata una variabile proposta per l'e-mail dell'amministratore. Riproduci una nuova installazione basata su Docker con le impostazioni SMTP e usa “Basic settings → Test and verify email settings” per confermare che l'e-mail sia impostata e che il test non fallisca più con l'errore 400 segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Shell
Stelle
7.4k
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/docker

Tutte le issue di nextcloud/docker

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.