Skip to content

Commit

Permalink
Merge pull request #4 from blmarquess/develop
Browse files Browse the repository at this point in the history
0.2.3
  • Loading branch information
blmarquess committed Feb 13, 2024
2 parents 5c312db + 87d8c0b commit c36a532
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Generate Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install dependencies
run: npm install

- name: Bump version and create release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
draft: false
prerelease: false
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ module.exports = ({ env }) => ({
accountKey: env("STORAGE_ACCOUNT_KEY"),
sasToken: env("STORAGE_ACCOUNT_SAS_TOKEN"),
serviceBaseURL: env("STORAGE_URL"),
cdnBaseURL: env("STORAGE_CDN_URL"),
containerName: env("STORAGE_CONTAINER_NAME", "myPrivateContainer"),
defaultPath: "assets",
createContainerIfNotExists: false,
blobLinkExpirationTime: env("STORAGE_SIGNED_URL_EXPIRES_TIME", 24), // time of expiration sign urls in hours
defaultPath: env("STORAGE_DEFAULT_PATH","assets"),
createContainerIfNotExists: ('STORAGE_CREATE_CONTAINER_NOT_EXISTES' ,false),
blobLinkExpirationTime: env("STORAGE_SIGNED_URL_EXPIRES_TIME", 24),
uploadOptions: {
bufferSize: env("STORAGE_BUFFER_SIZE"),
maxConcurrency: env("STORAGE_MAX_CONCURRENCY", 10),
Expand Down Expand Up @@ -92,3 +93,19 @@ export default [
// ...
];
```

## Environments

```bash
STORAGE_ACCOUNT=your_storage_account <"without .blob.core.windows.net">
STORAGE_ACCOUNT_KEY=your_storage_account_key
STORAGE_ACCOUNT_SAS_TOKEN=your_storage_account_sas_token
STORAGE_URL=your_storage_url <"without .blob.core.windows.net">
STORAGE_CDN_URL=your_cdn_url <"optional">
STORAGE_CONTAINER_NAME=your_container_name
STORAGE_DEFAULT_PATH=your_default_path <"default assets">
STORAGE_SIGNED_URL_EXPIRES_TIME=your_signed_url_expires_time <"default 1">
STORAGE_BUFFER_SIZE=your_buffer_size <"default (4*1024*1024)4mb">
STORAGE_MAX_CONCURRENCY=your_max_concurrency <"default 20">
STORAGE_CREATE_CONTAINER_NOT_EXISTES=boolean_if_create_container_not_exists <"default false">
```
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azure-storage-provider-strapi",
"version": "0.2.2",
"version": "0.2.3",
"description": "lib of upload files to blob storage private",
"main": "lib/main.js",
"source": "src/main.ts",
Expand Down

0 comments on commit c36a532

Please sign in to comment.