From 75dbeacc6c297fd002117ac57c29a2dddcadf849 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Fri, 5 May 2017 05:19:25 -0400 Subject: [PATCH] self-hosting instructions --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 60024004..9b404881 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,25 @@ organized by timestamp. For each sites it saves: - screenshot of site using headless chrome - PDF of site using headless chrome -The wget archive is suitable for serving on your personal server, you can upload the pocket +## Publishing Your Archive + +The pocket archive is suitable for serving on your personal server, you can upload the pocket archive to `/var/www/pocket` and allow people to access your saved copies of sites. +Just stick this in your nginx config to properly serve the wget-archived sites: + +```nginx +location /pocket/ { + alias /var/www/pocket/; + try_files $uri $uri/ $uri.html =404; +} +``` + +Make sure you're not running any content as CGI or PHP, you only want to serve static files! + +Urls look like: `https://sweeting.me/pocket/archive/1493350273/en.wikipedia.org/wiki/Dining_philosophers_problem` + ## Info This is basically an open-source version of [Pocket Premium](https://getpocket.com/).