1
0
Fork 0
mirror of synced 2024-06-22 16:10:54 +12:00

self-hosting instructions

This commit is contained in:
Nick Sweeting 2017-05-05 05:19:25 -04:00
parent 0575108f69
commit 75dbeacc6c

View file

@ -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/).