packages feed

instapaper-sender 0.1.0.1 → 0.1.0.2

raw patch · 4 files changed

+45/−5 lines, 4 files

Files

README.md view
@@ -1,7 +1,10 @@ # instapaper-sender -> Basic HTTP gateway to save articles to Instapaper+*Basic HTTP gateway to save articles to Instapaper* +[![Hackage](https://img.shields.io/hackage/v/instapaper-sender.svg)](https://hackage.haskell.org/package/instapaper-sender)+[![Hackage-Deps](https://img.shields.io/hackage-deps/v/instapaper-sender.svg)](http://packdeps.haskellers.com/feed?needle=instapaper-sender)+ ## Intro  `instapaper-sender` provides an web server that will take URLs and send them to@@ -18,7 +21,7 @@ ## Usage  Obtain an email account on a service that supports SMTP with SSL (for example,-[Yandex Mail](mail.yandex.com)).+[Yandex Mail](https://mail.yandex.com)).  Copy the included `config.example.json` and fill out the settings: @@ -54,8 +57,8 @@ IP address in the HTTP headers when producing log output.  Once you're all set up, navigate to-`https://<your instapaper-server subdomain>/<url>` to add `<url>` to send-`<url>` to your reading list.+`http://<your instapaper-sender address>/<url>` to send `<url>` to your reading+list.  ## License 
instapaper-sender.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack  name:           instapaper-sender-version:        0.1.0.1+version:        0.1.0.2 synopsis:       Basic HTTP gateway to save articles to Instapaper description:    Please see README.md category:       Web@@ -17,6 +17,8 @@ cabal-version:  >= 1.10  extra-source-files:+    instapaper-sender.nginx+    instapaper-sender.service     README.md  executable instapaper-sender
+ instapaper-sender.nginx view
@@ -0,0 +1,20 @@+server {+  server_name instapaper-sender.example.com;++  access_log /var/log/nginx/instapaper-sender.example.com/access.log;+  error_log /var/log/nginx/instapaper-sender.example.com/error.log error;++  location = /favicon.ico {+    return 404;+  }++  location / {+    proxy_pass http://127.0.0.1:3507;+    proxy_http_version 1.1;+    proxy_set_header Upgrade $http_upgrade;+    proxy_set_header Connection 'upgrade';+    proxy_set_header Host $host;+    proxy_cache_bypass $http_upgrade;+    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+  }+}
+ instapaper-sender.service view
@@ -0,0 +1,15 @@+[Unit]+Description=instapaper-sender++[Service]+ExecStart=/srv/instapaper-sender/instapaper-sender++WorkingDirectory=/srv/instapaper-sender++User=nobody+Group=nogroup++Restart=always++[Install]+WantedBy=multi-user.target