Skip to content

Added missing env vars - #929

Merged
eldadfux merged 1 commit into
devfrom
fix-missing-env-vars
Feb 22, 2021
Merged

eldadfux merged 1 commit into
devfrom
fix-missing-env-vars

Conversation

@eldadfux

Copy link
Copy Markdown
Member

What does this PR do?

Added some missing optional env vars from the setup compose file. This PR adds to make sure devs don't need to update both .env and docker-compose.yml file to get a feature working.

Test Plan

N/A

Related PRs and Issues

Issue raised on Discord

Have you read the Contributing Guidelines on issues?

Yes

@TorstenDittmann

Copy link
Copy Markdown
Contributor

Can we auto generate where the values have to be?

We could add a service property to our variables which would define the to be exposed variables for the services.

[
    'name' => '_APP_DOMAIN_TARGET',
    'description' => 'A DNS A record hostname to serve as a CNAME target for your Appwrite custom domains. You can use the same value as used for the Appwrite \'_APP_DOMAIN\' variable. The default value is \'localhost\'.',
    'introduction' => '',
    'default' => 'localhost',
    'required' => true,
    'question' => 'Enter a DNS A record hostname to serve as a CNAME for your custom domains.\nYou can use the same value as used for the Appwrite hostname.',
    'services' => [
        'appwrite', 'appwrite-certificates-worker',....
    ],
],

@eldadfux

Copy link
Copy Markdown
Member Author

Can we auto generate where the values have to be?

We could add a service property to our variables which would define the to be exposed variables for the services.

[
    'name' => '_APP_DOMAIN_TARGET',
    'description' => 'A DNS A record hostname to serve as a CNAME target for your Appwrite custom domains. You can use the same value as used for the Appwrite \'_APP_DOMAIN\' variable. The default value is \'localhost\'.',
    'introduction' => '',
    'default' => 'localhost',
    'required' => true,
    'question' => 'Enter a DNS A record hostname to serve as a CNAME for your custom domains.\nYou can use the same value as used for the Appwrite hostname.',
    'services' => [
        'appwrite', 'appwrite-certificates-worker',....
    ],
],

The more I think of it lately, it seems like we can't avoid a containers.php config file, no?

@TorstenDittmann

Copy link
Copy Markdown
Contributor

Can we auto generate where the values have to be?
We could add a service property to our variables which would define the to be exposed variables for the services.

[
    'name' => '_APP_DOMAIN_TARGET',
    'description' => 'A DNS A record hostname to serve as a CNAME target for your Appwrite custom domains. You can use the same value as used for the Appwrite \'_APP_DOMAIN\' variable. The default value is \'localhost\'.',
    'introduction' => '',
    'default' => 'localhost',
    'required' => true,
    'question' => 'Enter a DNS A record hostname to serve as a CNAME for your custom domains.\nYou can use the same value as used for the Appwrite hostname.',
    'services' => [
        'appwrite', 'appwrite-certificates-worker',....
    ],
],

The more I think of it lately, it seems like we can't avoid a containers.php config file, no?

Sounds reasonable 👍🏻

@eldadfux

Copy link
Copy Markdown
Member Author

OK, I'll merge this PR and open a new issue on Asana.

@eldadfux
eldadfux merged commit 33f3918 into dev Feb 22, 2021
@eldadfux
eldadfux deleted the fix-missing-env-vars branch February 24, 2021 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants