This commit is contained in:
nick committed 2026-05-19 16:37:53 -07:00
1 parent 76b86c63a6
commit 414a9ff5ee
5 files changed
+42

No files matched your search

+1
View File
@@ -1 +1,2 @@
node_modules/ node_modules/
.env
+27
View File
@@ -0,0 +1,27 @@
# AudioPen Nextcloud Webhook
A small Node.js webhook service that receives notes from AudioPen and uploads them to a folder in Nextcloud using WebDAV.
When AudioPen sends a webhook request, the service:
1. Receives the note content
2. Creates a timestamped Markdown file
3. Uploads the file to the configured Nextcloud folder
Example filename:
```text
note-2026-05-19T22-15-10.123Z.md
```
## Example `.env`
Create a file named `.env` in the project root directory:
```env
NEXTCLOUD_URL=https://nextcloud.example.com
NEXTCLOUD_USERNAME=myuser
NEXTCLOUD_PASSWORD=my-app-password
NEXTCLOUD_FOLDER=AudioPen
PORT=3000
```
+12
View File
@@ -9,6 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"axios": "^1.9.0", "axios": "^1.9.0",
"dotenv": "^17.4.2",
"express": "^5.1.0" "express": "^5.1.0"
} }
}, },
@@ -188,6 +189,17 @@
"node": ">= 0.8" "node": ">= 0.8"
} }
}, },
"node_modules/dotenv": {
"version": "17.4.2",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
"integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dunder-proto": { "node_modules/dunder-proto": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+1
View File
@@ -4,6 +4,7 @@
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"axios": "^1.9.0", "axios": "^1.9.0",
"dotenv": "^17.4.2",
"express": "^5.1.0" "express": "^5.1.0"
} }
} }
+1
View File
@@ -1,5 +1,6 @@
import express from 'express' import express from 'express'
import axios from 'axios' import axios from 'axios'
import 'dotenv/config'
const app = express() const app = express()