Skip to content

Implementing more important environment variables #668

@Askotion

Description

@Askotion

Hello,

is it possible to add some important environment variables from here:
https://github.com/owncloud-docker/base#available-environment-variables

For example, the OVERWRITEPROTOCOL variable needs to be set to https to get certain things to work when using nextcloud behind an Nginx proxy. This can be done by using the PHP occ command but only if the nextcloud container is fully running.

I wrote some bash scripts that automatically copy some files and my docker-compose.yml into a folder. But it's not possible to run the PHP occ command inside the script as it says nextcloud isn't ready yet. (even with a 30-second sleep timer).
I'm gettings this error:

Nextcloud is not installed - only a limited number of commands are available
                 
  There are no commands defined in the "config:system" namespace.  

I've tried to set environment variables using the NC_ prefix but I realized that only works for already present variables in the config.php (not for new / not added ones).

It would help a lot if it's somehow possible to get more then the available 10 environment variables.

EDIT:
I just found this PR which would solve the problem but I don't know if it's being continued?
#527

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions