mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
✨ Support read-only publish service
* 🎨 kernel supports read-only publishing services * 🐛 Fix authentication vulnerabilities * 🎨 Protect secret information * 🎨 Adjust the permission control * 🎨 Adjust the permission control * 🎨 Fixed the vulnerability that `getFile` gets file `conf.json` * 🎨 Add API `/api/setting/setPublish` * 🎨 Add API `/api/setting/getPublish` * 🐛 Fixed the issue that PWA-related files could not pass BasicAuth * 🎨 Add a settings panel for publishing features * 📝 Add guide for `Publish Service` * 📝 Update Japanese user guide * 🎨 Merge fixed static file services
This commit is contained in:
parent
536879cb84
commit
ba2193403d
47 changed files with 3690 additions and 375 deletions
|
|
@ -22,6 +22,7 @@ import (
|
|||
"fmt"
|
||||
"math/rand"
|
||||
"mime"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
|
|
@ -341,7 +342,9 @@ func WriteWorkspacePaths(workspacePaths []string) (err error) {
|
|||
}
|
||||
|
||||
var (
|
||||
ServerPort = "0" // HTTP/WebSocket 端口,0 为使用随机端口
|
||||
ServerURL *url.URL // 内核服务 URL
|
||||
ServerPort = "0" // HTTP/WebSocket 端口,0 为使用随机端口
|
||||
|
||||
ReadOnly bool
|
||||
AccessAuthCode string
|
||||
Lang = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue