Skip to content

Commit a22f81b

Browse files
committed
add siyuan service
1 parent e29eb33 commit a22f81b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

siyuan/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# fly.io playbook for SiYuan
2+
3+
[SiYuan](https://github.com/siyuan-note/siyuan) is a privacy-first personal knowledge management system, support fine-grained block-level reference and Markdown WYSIWYG.
4+
5+
## Requirements
6+
7+
**YOU MUST SET THE FOLLOWING SECRETS IN YOUR FLY APP:**
8+
9+
`fly secrets set SIYUAN_ACCESS_AUTH_CODE=your-passcode`

siyuan/fly.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# app = 'siyuan'
2+
primary_region = 'sjc'
3+
4+
[build]
5+
image = 'b3log/siyuan'
6+
7+
[env]
8+
SIYUAN_WORKSPACE_PATH = '/siyuan/workspace'
9+
# SIYUAN_ACCESS_AUTH_CODE=set-as-fly-secret
10+
11+
[[mounts]]
12+
source = 'siyuan_workspace'
13+
destination = '/siyuan/workspace'
14+
initial_size = '1g'
15+
16+
[http_service]
17+
internal_port = 6806
18+
force_https = true
19+
auto_stop_machines = 'stop'
20+
auto_start_machines = true
21+
min_machines_running = 0
22+
23+
[[vm]]
24+
memory = '256mb'
25+
cpus = 1

0 commit comments

Comments
 (0)