Skip to content

Commit 9e7ef8c

Browse files
authored
Add an example for protected files
1 parent 2cd99d8 commit 9e7ef8c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,18 @@ See the example below
199199
transformed-nginx-config-directory-path: /etc/nginx/
200200
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" } ]'
201201
debug: false
202-
```
202+
## Handling NGINX configuration and certificates
203+
204+
```yaml
205+
- name: "Sync NGINX configuration- multi file and certificate to NGINXaaS for Azure"
206+
uses: nginxinc/nginx-for-azure-deploy-action@v0.5.0
207+
with:
208+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
209+
resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
210+
nginx-deployment-name: ${{ secrets.NGINX_DEPLOYMENT_NAME }}
211+
nginx-deployment-location: ${{ secrets.NGINX_DEPLOYMENT_LOCATION }}
212+
nginx-config-directory-path: config/
213+
nginx-root-config-file: nginx.conf
214+
transformed-nginx-config-directory-path: /etc/nginx/
215+
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" } ]'
216+
debug: false

0 commit comments

Comments
 (0)