Skip to content

Commit 92504d5

Browse files
authored
protected files in example (#51)
Update README to reflect protected files in the example
1 parent d655263 commit 92504d5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,22 @@ See the example below
198198
nginx-certificates: '[{"certificateName": "$NGINX_CERT_NAME", "keyvaultSecret": "https://$NGINX_VAULT_NAME.vault.azure.net/secrets/$NGINX_CERT_NAME", "certificateVirtualPath": "/etc/nginx/ssl/my-cert.crt", "keyVirtualPath": "/etc/nginx/ssl/my-cert.key" } ]'
199199
debug: false
200200
```
201+
202+
## Handling Protected files in the configuration
203+
204+
For files that contain any sensitive data, you can mark them as protected. You cannot access the file contents of a protected file saved to the NGINX configuration, but you can view its metadata. The input for protected files takes a comma-separated list of file paths relative to nginx-config-directory-path that should be marked as protected.
205+
206+
```yaml
207+
- name: "Sync NGINX configuration- mark protected files in NGINXaaS for Azure"
208+
uses: nginxinc/nginx-for-azure-deploy-action@v0.5.0
209+
with:
210+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
211+
resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
212+
nginx-deployment-name: ${{ secrets.NGINX_DEPLOYMENT_NAME }}
213+
nginx-deployment-location: ${{ secrets.NGINX_DEPLOYMENT_LOCATION }}
214+
nginx-config-directory-path: config/
215+
nginx-root-config-file: nginx.conf
216+
transformed-nginx-config-directory-path: /etc/nginx/
217+
protected-files: 'servers/server1.conf,conf.d/sensitive.conf'
218+
debug: false
219+
```

0 commit comments

Comments
 (0)