Commit Graph

26 Commits

Author SHA1 Message Date
Ian Denhardt 6e34797d02 docs/server-config: mention diskpacked perf trade-off.
This hadn't been clear to me as a user getting started.
2019-06-22 01:06:40 -04:00
Angel 3dbb01138f pkg/importer: add "instapaper" importer for Instapaper service
A working importer for the Instapaper service. The importer imports
bookmarks, full text articles, and highlights. A blob item handler for
Instapaper highlight permanodes is included to show summarized highlight
content from the server UI.

Also, this CL updates github.com/garyburd.com/go-auth to rev
bca2e7f09a178fd36b034107a00e2323bca6a82e in order to get support for
XAuth requests.

Fixes #1208

Change-Id: I72e0c40b245c7eec4a44bb475fcaa96a0ee9a1c5
2018-11-26 07:57:08 -05:00
mpl e3577aab47 doc: add reverse-proxy section in server-config
Change-Id: I0abbb7d0de734eb5d22799bb4fa7d627e21c495a
2018-08-24 01:58:36 +02:00
Euan Kemp 90042fe296 pkg/blobserver/s3: use official aws client
vendor: add github.com/aws/aws-sdk-go at rev bc3f534c19ffdf835e524e11f0f825b3eaf541c3

This changes all uses of the s3 client to be the official aws-sdk-go. As
such, it also deletes the previous client maintained in internal.

There are a few notable changes that come with this:

1. An 'aws_region' key is added to the low-level config. The
   'get-bucket-location' call is used to identify the correct region
   rather than using the redirect returned to determine it.
2. Deleting multiple objects at once is much faster (batches of up to
   1000 vs 1 at a time).
3. Retriable errors are retried automatically (see #1184).
4. Newer APIs are used for some operations (v2 / batch apis).

An unfortunate result of 4 is that this is technically a backwards
incompatible change. An IAM policy which used to be sufficient for
perkeep may no longer permit some of the new api calls (even if they're
not doing anything different really).

Fixes #1184, #911

Change-Id: I077fe88def18b7e9a14267820773245e7003634c
2018-07-31 15:51:31 -07:00
Brad Fitzpatrick 789f861964 all: rename some references to .config/camlistore to .config/perkeep
Updates #981

Change-Id: Id76fe17d80380bdb973bc85ec8f54ba9500aff40
2018-05-02 21:36:29 -07:00
Brad Fitzpatrick ca76a40bbc Rename camlistored to perkeepd.
Updates #981

Change-Id: I8fe43c240c149074c23128a89ab426af9cbf94b4
2018-04-21 11:06:09 -07:00
mpl ce4658abfc cmd: rename camput to pk-put, and make "pk put" call it
A new "put" mode is added to the pk command, so that the "pk put"
command can be used to create and upload blobs.

What this command does is actually just call the previously named
"camput" executable, which is renamed to "pk-put" in this change.

This involves adding a new way to register a mode in cmdmain, when such
a mode is just meant to call an external binary. To emphasize the
distinction, the existing func (to register a sub-command, or a mode) is
renamed from RegisterCommand to RegisterMode, and RegisterCommand is now
the name of the new func/way.

Updates #981
Updates #1056

Change-Id: Ief954c17aa88a376f551df7de4b4e9fe41ad96d1
2018-04-21 10:26:55 -07:00
mpl 7eda9fd502 pkg/serverinit: remove DBNames and provide consistent default instead
DBNames is supposed to provide configuration for the various databases
names. However,
1) I contend that nobody needs or wants to configure them as long as we
provide sane defaults.
2) it seems the only obvious user we have for this is to set up some of
the names on GCE.
3) having another external source for names complicates the code
further, especially when we already have the distinction between
database names for DBMS and file names for file-based databases.
4) writing a correct documentation for it is awkward.

Therefore, in this CL, I propose that we remove DBNames. Instead,
genconfig.go now sets some consistent default names for the various
queues and indexes set up on a DBMS (MySQL, PostGres, Mongo). To that
end, we introduce the new, but optional, DBUnique configuration
parameter, that is used as a part of all the database names, in order to
be able to run several Perkeep instances on the same DBMS, without name
conflicts.

In addition, the queue for the bs->index synchandler is now set up on
the same DBMS that is already in use for the index itself, instead of
using a file-base database.
And i think we could proceed likewise for the other queues.

Fixes #951

Change-Id: Ib6a638f088a563d881e3957e4042e932382b44f4
2018-01-04 04:01:34 +01:00
Brad Fitzpatrick d893baa701 Merge "website: added note about MySQL permissions in server-config" 2017-12-29 15:54:10 +00:00
Mike Lloyd 223fb6e223 website: added note about MySQL permissions in server-config
This change specifies the required permissions when using a MySQL or
MariaDB index

Change-Id: Ib8852234946037da8f902bdaf4a6346f0f23ddec
2017-12-29 15:53:54 +00:00
mpl cea35f8a40 website: first pass of s/Camlistore/Perkeep/ on contents
A second pass will be needed on the URLs once we have moved all the
repos and such.

Issue #981

Change-Id: Ibb58f4c4f16481da69e811142e8337b826c0d164
2017-12-18 16:46:08 +01:00
Paul Lindner f28eb3cce8 Remove appengine server and the old python blobserver
Change-Id: I734f4621f77ce902050e9b37805e7f8912f75e97
2017-11-30 19:13:37 -08:00
mpl 28bc007676 pkg/serverinit: add low-level config generation for Backblaze B2
Fixes #971

Change-Id: Iba944e3597009b18a380007b72fba5127e9a1698
2017-10-26 19:59:01 +02:00
mpl 372f6c68b2 doc: add low-level section in server-config
And the first low-level configuration example: replication to a remote
instance.

Change-Id: I028d9185c192421fe0904b3149d4d187c78474dc
2017-02-28 23:58:41 +01:00
Mathieu Lonjaret 5fc2ba9298 Merge "doc/storage.md: Document how to configure s3 storage" 2017-02-14 15:24:52 +00:00
Daniel Heath 0b682c6711 doc/storage.md: Document how to configure s3 storage
Change-Id: I10f8b43724063ec7dc091e250ff1f3834224165c
2017-02-14 16:22:26 +01:00
mpl d72dc9a6ef doc: add camliNetIP in server-config
Change-Id: I3fc14112432db4428aee38862a709877d9fe9787
2017-01-30 16:39:28 +01:00
Attila Tajti c275aed960 doc: explain how publisher paths work with permanodes
Change-Id: I7ddf1c5f2bc93961fbadba978e65819c0bdf5b24
2017-01-18 18:51:08 +01:00
mpl a746c8df31 doc: TLS certificate configuration
Fixes #891

Change-Id: I90a7d7c6df90d0296856caed57a1c7cada2c1d74
2016-12-17 02:16:02 +01:00
mpl 3c569d3edc doc/server-config: fix genconfig typo
Change-Id: I8b3494f0705ae1726e967c6b61b2ef3a8d9502fb
2016-11-04 00:36:00 +01:00
kortschak cb46e8de3b doc: fix typo
Change-Id: I50f3a4e4a89a26b769be69a0924d0e37efe53c87
2016-10-10 15:09:27 +10:30
mpl 65343d114d pkg/server/app: improve app handling
These improvements on the server app handler should help writing
and running stand-alone apps.

The two main goals are:
1) "simple" configurations should work automatically; the parameters for
the app are derived from the Listen and BaseURL of the Camlistore
server.
2) More advanced configurations, such as being behind a proxy, should be
easily configurable through the app's Listen, BackendURL, and ApiHost
parameters.

I had worked on them while doing the scanning cabinet app, and I am
backporting them now since we haven't landed the scanning cabinet yet,
and people have been having trouble setting up the publisher.

pkg/app/app_test.go is gone because app.ListenAddress is now dumb. The
hard work is done in pkg/server/app instead.

Fixes #818

Change-Id: Ice2610d6bac611b209cc3a928e67fa6093a41d3e
2016-07-04 22:21:16 +02:00
mpl 46cf811f43 pkg/server: update home page and doc about /setup
wizard under /setup is gone, we should not advertize it anymore.

Change-Id: I7c5384481db9b3f37f1c8b0a6f5a8fe482c4d99b
2016-06-09 17:50:03 +02:00
mpl 3ab8a13051 doc: fix publishing link
Change-Id: If0876ba116e100279465893d4df66787d17711d5
2016-05-11 02:25:27 +02:00
Will Norris a1ec9bf60e rename HACKING to CONTRIBUTING.md
GitHub treats the CONTRIBUTING file special, in that it is referenced
any time someone files a new issue or starts to create a pull request.
Also make minor updates to file to use markdown and current hacking
instructions.

Change-Id: I68f0d7a69397851ee6c65671ae692cbfb2b93946
2016-04-27 12:16:29 -07:00
Will Norris 7cb074bfde website: serve /doc/ URLs from top-level doc dir
- move existing content from website/content/docs to top-level doc
  directory
- redirect /docs/ URLs to /doc/

Fixes #720

Change-Id: I92e26bbc1fdbe994089080ae3a971d85c12921ab
2016-04-25 22:13:09 -07:00