use getenv in configs
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, shell
- Área
- devops, infrastructure
Línea de trabajo
Comienza localizando la configuración de la imagen de Docker y la inicialización existente de las variables de entorno que escribe valores en config.php. Identifica qué configuraciones necesarias para la operación continua siguen estando codificadas de forma fija y evalúa si getenv puede proporcionarlas de forma segura, incluidos los casos de secretos del contenedor y su rotación. Se considera terminado cuando las configuraciones relevantes leen de forma coherente las variables de entorno sin eliminar la compatibilidad con la configuración manual en config.php.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Is your feature request related to a problem? Please describe.
Simply put, I can understand using the environment variables for initialising NC, but then not using environment variables for continued operations seems silly to me. Why hardcode the values when they are initially read from environment variables anyway?
Additionally using environment variables instead of hardcoding would allow using container secrets directly.
Additionally rotating DB passwords or locations becomes a breeze since it would all be done through environment variables.
Describe the solution you'd like
Star using: 'var' => getenv('ENV_VAR') as much as possible since manually editing config.php can be done eitherway.
Describe alternatives you've considered
Doing it myself, while yes I've done this. I see that this would be likely to benefit other people as well.
Additional context
Since this is an "advanced" image when compared to AIO I can understand potential hesitancy to adopt my suggestions. Yet I believe that it will help since it doesn't detract from original deployment methods in any way.
- Lenguaje dominante
- Shell
- Estrellas
- 7.4k
- Forks
- 1.9k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud/docker
-
1. To develop bug feature: cron image
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Drop paragarph about anonymous (unnamed) volumes under Persistent Storage section fo the docsAbiertobug docs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
0. Needs triage bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Imagick architecture mismatch (x86_64 vs aarch64) on official arm64 image causes Apache segfaultsAbierto0. Needs triage bug
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
Todos los issues de nextcloud/docker
Issues similares
-
Laptop display stays disabled after unplugging external monitor: FALLBACK output counted as externalAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
-
[Bug]: Three default prefs with JSON values are never set (override.sh escapes their quotes twice)Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Floorp-Projects/Floorp#2913 ·
Los mantenedores suelen responder en 1 día
-
agent-butler-finding agent-research-recommend bug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
jordansmall/spindrift#5258 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Copy as CLI command writes words.json with a heredoc that silently overwrites an existing fileAbiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día