{"name":"memos/155", "uid":"8edpaJ4n4gtdbSZVDcBve3", "rowStatus":"ACTIVE", "creator":"users/1", "createTime":"2024-07-19T23:16:19Z", "updateTime":"2024-07-20T00:23:59Z", "displayTime":"2024-07-19T23:16:19Z", "content":"`MemosViewer.php`: quick server-side script to provide a no-JS view to Memos, and link previews.\n* Devlog: https://octospacc.altervista.org/2024/07/17/memomento/\n* Thread: https://github.com/orgs/usememos/discussions/3721\n* Code: https://hlb0.octt.eu.org/Drive/Misc/Scripts/MemosViewer.php\n* Backup: https://gitlab.com/octospacc/Snippets/-/blob/main/MemosViewer.php\nNginx config for making the PHP script work on the original memo share URLs:\n```nginx\nserver {\n  # ... (normal configuration for Memos behind Nginx)\n  location /m/ {\n    # adjust host and IP by your own server\n    proxy_pass http://127.0.0.1/MemosViewer.php?structure=original&uid=;\n    proxy_set_header Host hlb0.octt.eu.org;\n  }\n}\n```\nLink previews as seen on Telegram:", "nodes":[{"type":"PARAGRAPH", "paragraphNode":{"children":[{"type":"CODE", "codeNode":{"content":"MemosViewer.php"}}, {"type":"TEXT", "textNode":{"content":": quick server-side script to provide a no-JS view to Memos, and link previews."}}]}}, {"type":"LINE_BREAK", "lineBreakNode":{}}, {"type":"UNORDERED_LIST", "unorderedListNode":{"symbol":"*", "indent":0, "children":[{"type":"TEXT", "textNode":{"content":"Devlog: "}}, {"type":"AUTO_LINK", "autoLinkNode":{"url":"https://octospacc.altervista.org/2024/07/17/memomento/", "isRawText":true}}]}}, {"type":"LINE_BREAK", "lineBreakNode":{}}, {"type":"UNORDERED_LIST", "unorderedListNode":{"symbol":"*", "indent":0, "children":[{"type":"TEXT", "textNode":{"content":"Thread: "}}, {"type":"AUTO_LINK", "autoLinkNode":{"url":"https://github.com/orgs/usememos/discussions/3721", "isRawText":true}}]}}, {"type":"LINE_BREAK", "lineBreakNode":{}}, {"type":"UNORDERED_LIST", "unorderedListNode":{"symbol":"*", "indent":0, "children":[{"type":"TEXT", "textNode":{"content":"Code: "}}, {"type":"AUTO_LINK", "autoLinkNode":{"url":"https://hlb0.octt.eu.org/Drive/Misc/Scripts/MemosViewer.php", "isRawText":true}}]}}, {"type":"LINE_BREAK", "lineBreakNode":{}}, {"type":"UNORDERED_LIST", "unorderedListNode":{"symbol":"*", "indent":0, "children":[{"type":"TEXT", "textNode":{"content":"Backup: "}}, {"type":"AUTO_LINK", "autoLinkNode":{"url":"https://gitlab.com/octospacc/Snippets/-/blob/main/MemosViewer.php", "isRawText":true}}]}}, {"type":"LINE_BREAK", "lineBreakNode":{}}, {"type":"PARAGRAPH", "paragraphNode":{"children":[{"type":"TEXT", "textNode":{"content":"Nginx config for making the PHP script work on the original memo share URLs:"}}]}}, {"type":"LINE_BREAK", "lineBreakNode":{}}, {"type":"CODE_BLOCK", "codeBlockNode":{"language":"nginx", "content":"server {\n  # ... (normal configuration for Memos behind Nginx)\n  location /m/ {\n    # adjust host and IP by your own server\n    proxy_pass http://127.0.0.1/MemosViewer.php?structure=original&uid=;\n    proxy_set_header Host hlb0.octt.eu.org;\n  }\n}"}}, {"type":"LINE_BREAK", "lineBreakNode":{}}, {"type":"PARAGRAPH", "paragraphNode":{"children":[{"type":"TEXT", "textNode":{"content":"Link previews as seen on Telegram:"}}]}}], "visibility":"PUBLIC", "tags":[], "pinned":false, "resources":[{"name":"resources/2", "uid":"XvZeweLqKbYU3QFT3on4Me", "createTime":"2024-07-19T23:20:48Z", "filename":"image.png", "content":"", "externalLink":"", "type":"image/png", "size":"115467", "memo":"memos/155"}], "relations":[], "reactions":[], "property":{"tags":[], "hasLink":true, "hasTaskList":false, "hasCode":true, "hasIncompleteTasks":false}, "snippet":"MemosViewer.php: quick server-side script to provide a no-JS view to Memos, and link previews.\n*Devl..."}