Skip to content

Commit

Permalink
some iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
nermalcat69 committed Nov 28, 2024
1 parent 31b6591 commit 9209592
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions apps/docs/content/features/env-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ It is always necessary to redeploy your application when updating or creating en

## Setting secret variables

There are several ways to set secret variables in Zerops:
There are several ways to set secret variables to your project/services using Zerops GUI:

### During service import
### With Import Dialog

When importing services/project using yaml config via Zerops dashboard, you can assign secret variables using the `envSecrets` parameter:
When importing services/project using yaml config via Zerops dashboard, you can assign secret variables to your services in your yaml using the `envSecrets` parameter:

```yaml
services:
Expand All @@ -69,14 +69,10 @@ services:
S3_ACCESS_SECRET: 'ogFthuiLYki8XoL73opSCQ'
```

### In Zerops GUI
### From Project > Services > Secrets

Use secret variables to store passwords, tokens and other sensitive information that shouldn't be part of your repository and listed in zerops.yml.

You can manage secret variables in two ways:

1. **Individual editing**: Add or edit variables one by one using the "Add secret variable" button
2. **Bulk editing**: Click "Edit multiple secret variables in .env format" to manage multiple variables at once using .env file format
You can assign secret variables to your services from the **Project > Service > Environment variables** page.
Use secret variables to store tokens and other sensitive information that shouldn't be public and assigned in `zerops.yml`.

<p align="center">
<Image
Expand All @@ -86,6 +82,11 @@ You can manage secret variables in two ways:
/>
</p>

You can add or manage secret variables in your service in two ways:

1. Add variables one by one using the "Add secret variable" button
2. Click "Edit multiple secret variables in .env format" to manage multiple variables at once using .env file format

#### Individual editing
To configure individual variables, click the "Add secret variable" button and set values for `Key` and `Value`. To edit an existing variable, click on the menu <svg xmlns="http://www.w3.org/2000/svg" style={{ marginBottom: -5 + 'px' }} height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed"><path d="M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"/></svg> on the right side of its row.

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/nodejs/how-to/env-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ If you create a basic build env variable and a runtime env variable with the sam

You can set secret variables in two ways:

### During service import
### With Import Dialog

When importing a Node.js service using YAML configuration, you can define secret variables using the `envSecrets` map:

Expand Down

0 comments on commit 9209592

Please sign in to comment.