Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
parse-server-gcs-adapter
Advanced tools
[![Build Status](https://travis-ci.org/parse-server-modules/parse-server-gcs-adapter.svg?branch=master)](https://travis-ci.org/parse-server-modules/parse-server-gcs-adapter) [![codecov.io](https://codecov.io/github/parse-server-modules/parse-server-gcs-ad
parse-server adapter for Google Cloud Storage
npm install --save parse-server-gcs-adapter
{
"appId": 'my_app_id',
"masterKey": 'my_master_key',
// other options
"filesAdapter": {
"module": "parse-server-gcs-adapter",
"options": {
"projectId": "projectId",
"keyFilename": "path/to/keyfile",
"bucket": "my_bucket",
// optional:
"bucketPrefix": '', // default value
"directAccess": false // default value
}
}
}
Set your environment variables:
GCP_PROJECT_ID=projectId
GCP_KEYFILE_PATH=projectId
GCS_BUCKET=bucketName
And update your config / options
{
"appId": 'my_app_id',
"masterKey": 'my_master_key',
// other options
"filesAdapter": "parse-server-gcs-adapter"
}
Alternatively, you can use
GCLOUD_PROJECT
and GOOGLE_APPLICATION_CREDENTIALS
environment variables.
var GCSAdapter = require('parse-server-gcs-adapter');
var gcsAdapter = new GCSAdapter('project',
'keyFilePath',
'bucket' , {
bucketPrefix: '',
directAccess: false
});
var api = new ParseServer({
appId: 'my_app',
masterKey: 'master_key',
filesAdapter: gcsAdapter
})
or with an options hash
var GCSAdapter = require('parse-server-gcs-adapter');
var gcsOptions = {
"projectId": "projectId",
"keyFilename": "path/to/keyfile",
"bucket": "my_bucket",
"bucketPrefix": '',
"directAccess": false
}
var gcsAdapter = new GCSAdapter(gcsOptions);
var api = new ParseServer({
appId: 'my_app',
masterKey: 'master_key',
filesAdapter: gcsAdapter
})
FAQs
[![Build Status](https://travis-ci.org/parse-server-modules/parse-server-gcs-adapter.svg?branch=master)](https://travis-ci.org/parse-server-modules/parse-server-gcs-adapter) [![codecov.io](https://codecov.io/github/parse-server-modules/parse-server-gcs-ad
We found that parse-server-gcs-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.