Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ghost-webdav-storage-adapter
Advanced tools
A WebDAV storage adapter for the Ghost publishing platform
A WebDAV storage adapter for the Ghost publishing platform 3.x
npm install ghost-webdav-storage-adapter
mkdir -p ./content/adapters/storage/webdav
cp -v ./node_modules/ghost-webdav-storage-adapter/dist/*.js ./content/adapters/storage/webdav
Configure the WebDAV storage adapter by adding the following lines to the Ghost config file.
{
"storage": {
"active": "webdav",
"webdav": {
"url": "URL_TO_YOUR_WEBDAV_SERVER",
"username": "YOUR_WEBDAV_USERNAME",
"password": "YOUR_WEBDAV_PASSWORD",
"pathPrefix": "YOUR_PATH_PREFIX",
"storagePathPrefix": "YOUR_STORAGE_PATH_PREFIX"
}
}
}
NOTE: username
, password
, pathPrefix
and storagePathPrefix
are all optional.
The username
and password
configuration parameters are used in the Basic Auth access authentication on the WebDAV server.
Use a pathPrefix
if you prefer to limit access to the WebDAV server to a subtree. E.g. with a pathPrefix
of /ghost
all files will be stored under /ghost
and the adapter won't allow access to anything on the WebDAV server outside of /ghost
.
This adapter returns relative URLs for uploaded files. Requests to retrieve the file will be handled by Ghost as if they are stored on a local file system. This requires the returned URLs to start with the same prefix as Ghost's local storage adapter: /content/images
. This is the default value for storagePathPrefix
but you can provide a different prefix. Don't forget to create a Ghost route that routes requests for the prefix to the images store.
Alternatively, you can configure the WebDAV storage adapter by setting the following environment variables:
WEBDAV_SERVER_URL
WEBDAV_USERNAME // optional
WEBDAV_PASSWORD // optional
WEBDAV_PATH_PREFIX // optional
WEBDAV_STORAGE_PATH_PREFIX // optional
To debug the WebDAV storage adapter you can set environment variable DEBUG
to webdav
so that the adapter will log debug messages to standard out.
FAQs
A WebDAV storage adapter for the Ghost publishing platform
We found that ghost-webdav-storage-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.