v1.0.8: Add NGINX location for vditor markdown editor assets

- Serve /dist/ from node_modules/vditor/dist to fix lute.min.js 502 error
- The vditor editor dynamically loads lute parser at /dist/js/lute/lute.min.js
This commit is contained in:
2025-12-29 18:08:57 -06:00
parent 3665e86a3d
commit 1884e355e5
2 changed files with 9 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
"author": "Blinko Space",
"description": "AI-powered card note-taking application for capturing fleeting thoughts with RAG-enhanced search, markdown support, and self-hosted privacy.",
"tagline": "AI-powered note-taking",
"version": "1.0.0",
"version": "1.0.8",
"healthCheckPath": "/",
"httpPort": 8000,
"addons": {
@@ -24,5 +24,5 @@
"memoryLimit": 512000000,
"minBoxVersion": "7.0.0",
"postInstallMessage": "Blinko has been installed successfully!\n\nVisit your Blinko instance to create your first account.\nThe first user to register will become the administrator.\n\nData is stored in /app/data and will be backed up automatically.",
"changelog": "1.0.0: Initial Cloudron package"
"changelog": "1.0.8: Add NGINX location for vditor static files (lute.min.js)"
}

View File

@@ -51,6 +51,13 @@ http {
add_header Content-Type text/plain;
}
# Serve vditor static files (markdown editor library)
location /dist/ {
alias /app/code/node_modules/vditor/dist/;
expires 7d;
add_header Cache-Control "public, immutable";
}
# Proxy all requests to Blinko
location / {
proxy_pass http://blinko;