This repository was archived by the owner on Jul 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ ## Notion proxy
2+
3+ Notion proxy for public page
4+
5+ ### Node Version
6+
7+ 18
8+
9+ ### Environment variable
10+
11+ | Env | Description | Default |
12+ | -------------------| -----------------------------------------------------------------| ----------------------------------|
13+ | PAGE_TITLE | Page title | "" |
14+ | PAGE_DESC | Page desc | "" |
15+ | GOOGLE_FONT | See: ` https://developers.google.com/fonts/docs/getting_started ` | "" |
16+ | PROXY_PORT | Proxy port number | 3456 |
17+ | DOMAIN | Proxy domain for rewrite | localhost:3456 |
18+ | IS_TLS | Proxy tls | false |
19+ | NOTION_PAGE_ID | Notion public page id | f1db0cfbe246475784c67f279289abea |
20+ | CUSTOM_SCRIPT | Custom script | "" |
21+ | CONTENT_CACHE_SEC | Cache time for loaded content (sec) | 300 |
22+
23+ ### Reference for rewrite html processing
24+
25+ Reference: https://github.com/stephenou/fruitionsite
26+
27+ ### Getting started
28+
29+ Start proxy for debug on local.
30+
31+ ``` bash
32+ $ npm ci
33+ $ npm start_proxy
34+ 35+ > node src/index.js
36+ NotionProxy listening at localhost:3456, NotionId: f1db0cfbe246475784c67f279289abea
37+ ```
38+
39+ Start proxy binary.
40+
41+ ``` bash
42+ $ npm install -g pkg
43+ $ npm run build
44+ $ ./notion-proxy
45+ NotionProxy listening at localhost:3456, NotionId: f1db0cfbe246475784c67f279289abea
46+ ```
You can’t perform that action at this time.
0 commit comments