Set config parts via environment variables before starting the containers

Hello,

I would like to set some config.php variables before I’m starting all the instances with docker-compose.
I found this solution here but it doesn’t really work for me: https://github.com/nextcloud/server/pull/3966

I’m trying to set the variable “overwriteprotocol” to “https”.
Atm my .env file looks like that:

NC_overwriteprotocol=https

But when I start the containers there is still no overwriteprotocol variable in my config.php.

What is my issue here? I really hope someone could help me with this.

Best regards,
Kay

1 Like

I am also experiencing this problem deploying Nextcloud v18.0.0.10 using Kubernetes.

What’s the status on this?