Commit Graph

131 Commits

Author SHA1 Message Date
mpl 5db007dc74 website: make sure autocert is given a host name
Change-Id: I306e69a0833c345f86ebc5412a914aa0991a68d9
2016-10-14 02:04:53 +02:00
mpl 9bba338a79 website: use golang.org/x/crypto/acme for Lets Encrypt
vendor: add golang.org/x/crypto/acme/{autocert}
at 8e06e8ddd9629eb88639aba897641bff8031f1d3

remove rsc.io/letsencrypt and its deps.

Issue #859

Change-Id: I292543e88476bd4658846496f96a2a07bb25a186
2016-10-14 01:17:21 +02:00
mpl 6297d0d570 website: update google cloud dependencies
This change follows the changes at
ab06dbd80d

google.golang.org/genproto/googleapis/datastore updated to
44808ed2d86e258615bb701d395cbbfe6686a3e6

As a consequence:
google.golang.org/genproto/protobuf added at
44808ed2d86e258615bb701d395cbbfe6686a3e6
google.golang.org/genproto/googleapis/api/{label, metric, monitoredres,
serviceconfig} added/updated to 44808ed2d86e258615bb701d395cbbfe6686a3e6
github.com/golang/protobuf/ptypes{any, struct, timestamp, wrappers}
added/updated to 1f49d83d9aa00e6ce4fc8258c71cc7786aec968a

Test locally, and in "pseudo-production", i.e. with -cloudlaunch but with
a different projectID (hence with some of the hard-coded stuff changed).

Change-Id: Iad0caa78b19619bf153bf05870e6cb3a2ab669dd
2016-09-30 18:08:44 +02:00
mpl 2ab4d44e79 website: clean up previous docker git container
All the camweb features depending on docker had been stuck for a couple
of weeks because one of the docker containers was wedged somehow. I
don't know exactly what was wrong, but I figure it can't hurt to add the
same kind of cleanup that we have for the demo blobserver.

So in this CL, we name each container running a git command, so we can
stop and remove said container the next time we run the same command.

Change-Id: I66592fbbde73ea30e4cee7477ada450e0c6a645e
2016-09-05 23:51:41 +02:00
Mathieu Lonjaret 77f50b2579 Merge "website: mv downloadBox to all.css" 2016-06-20 15:55:54 +00:00
mpl 1087a9d837 website: mv downloadBox to all.css
Rids us of the IsMonthly hack.

We still need to do something about AddTemplateTheme in handler.go
though, see TODO there. In another change.

Also, change servePage to take a struct for its args, more in line with
Go style of few arguments.

Context: issue #815

Change-Id: Ib6799be31b78af3010eee942034f2ac0e8e1d76e
2016-06-20 17:51:46 +02:00
Eric Drechsel 6321f9b951 Instantiate markdownRenderer per-request
We were reusing markdownRenderer per-launch,
which was leading to auto-generated ids incrementing
on each request. See

https://github.com/russross/blackfriday/pull/129

Fixes #814.

Change-Id: Idb97348b076e4514cf22abe462bbdf3f8e7f6f9e
2016-06-19 14:32:07 -07:00
mpl 1ab6ff4176 website: use Let's Encrypt
rsc.io/letsencrypt vendored at rev
a019c9e6fce0c7132679dea13bd8df7c86ffe26c

vendor/github.com/xenolf/lego was vendored within rsc.io/letsencrypt

vendor/gopkg.in/square/go-jose.v1/ was vendored within
rsc.io/letsencrypt

golang.org/x/crypto at rev 77f4136a99ffb5ecdbdd0226bd5cb146cf56bc0e for
github.com/xenolf/lego

golang.org/x/time/rate at rev a4bde12657593d5e90d0533a3e4fd95e635124cb
for rsc.io/letsencrypt

Fixes #805

Change-Id: I4ccdee328d8832e361fa5a39e5b94edc7c90ec34
2016-06-10 17:55:16 +02:00
mpl 4232071cb3 misc/monthly.go: automatically generate a monthly release
Current version of doc/release/monthly.html generated with
go run ./misc/monthly.go -rev cdadfd650b

Change-Id: Icdebf60cb64dfcc12766976572f3a34eaeb135f3
2016-05-05 23:16:57 +02:00
Will Norris 7312e50924 website: strip directory index and file extensions
redirect to cleaner URLs without file extension or directory index
filename (index.html or README.md)

Fixes #732

Change-Id: I6332571b2d8ec1ea48e697d31017eb6a63fe1a12
2016-05-02 06:22:49 -07:00
Will Norris 1f0340b436 website: simplify docHandler
don't strip the "/doc" prefix, which simplifies some of the file
handling logic.  Also add a test case for the /docs/ => /doc/ redirect.

Change-Id: I96c60bc031daaeff7f78ca854b60bdc542913b3d
2016-05-01 21:53:22 -07:00
mpl d2ee6fe5dd website: redirect builder to travis
Fixes #658

Change-Id: I16f7d840e74320aad518ae7bdfd5702bace85cd4
2016-04-30 17:35:29 -07:00
Will Norris 5dd8671051 vendor: update cloud,grpc,protobuf libraries
update additional supporting libraries needed with
219f966a95

github.com/golang/protobuf @ 7cc19b78d562895b13596ddce7aafb59dd789318
google.golang.org/grpc @ b062a3c003c22bfef58fa99d689e6a892b408f9d
google.golang.org/cloud @ 36e3752134d445180a77cd40c922c48850b6fe9c
 - same as before, just added missing 'internal' package

Tests:
 - go run make.go succeeds
 - camweb builds and runs
 - go test ./pkg/... has a couple of failures, but nothing that wasn't
 already failing before this change

Fixes #743

Change-Id: I0a81f471f79255fcb4e0d615630eecce1c5cd966
2016-04-29 19:42:33 -07:00
Will Norris 7ec2b0ac2e website: update doc URLs
s/docs/doc/ and s/http/https/ for camlistore.org doc URLs in website and
code.

Change-Id: I875e2acece1f594a304f2bdb63f756fcb315abc8
2016-04-27 08:48:50 -07:00
Will Norris 3cc1efc75e website: serve non-HTML files as raw bytes
The website has several non-HTML files that mostly serve as examples
(eg: https://camlistore.org/doc/json-signing/example/signing-before.camli).
Today these files are parsed and rendered the same as HTML files, which
is particularly bad for these json-signing examples.  Instead, they
should be served raw, without any interpretation.

Change-Id: I09f7de130e55da7b2e585f1a110bbbf391f2279f
2016-04-26 16:25:45 -07:00
Will Norris 066db0952c website: use custom markdown options
This is all so that we can enable auto creating header IDs based on the
text of the header.  For example "# Foo" is converted to:

  <h1 id="foo">Foo</h1>

I'm not really sure why this isn't a default option, but whatever.  It's
also unfortunate that we have to copy all of the flags and extensions
from MarkdownCommon, but at least this will make it easier to add more
options in the future, I gues.

Change-Id: I65800c75560ad3b9a3fd0389b722c07ba11ee098
2016-04-26 12:47:40 -07:00
Brad Fitzpatrick f7e40292cb camweb: redirect /doc/dir to /doc/dir/ with trailing slash
Also fix up non-canonical links in docs after rename of /docs/ to /doc/

Updates #732

Change-Id: I7131f57cc7f8edf150cc785f42fe48917835c361
2016-04-26 09:46:07 -07:00
Will Norris fc619464df website: serve godocs for /app/ packages
Change-Id: If2836840aa5523e74a734051111e0ed614ea200e
2016-04-25 22:40:17 -07:00
Mathieu Lonjaret 7df8dbb2db Merge "website: always remove old demoblob3179 container" 2016-04-26 05:21:34 +00:00
Mathieu Lonjaret d422b6e942 Merge "website: serve /doc/ URLs from top-level doc dir" 2016-04-26 05:17:54 +00: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
Mathieu Lonjaret e0d422768d Merge "website: refactor mainHandler to allow diff roots" 2016-04-26 01:02:23 +00:00
Will Norris 6196e6ab98 website: refactor mainHandler to allow diff roots
This helps set up serving /docs/ requests out of different file root.
Additional, this allows the actual files on disk used to satisfy
requests to contain a .md or .html file extension (basically simulating
Apache multiviews).  Finally, requests that map to directories can be
satisfied by either a index.html or README.md file.

Ref #720

Change-Id: Id6076c242edd74b99a12699cd58c4567973d0d42
2016-04-25 18:01:27 -07:00
Brad Fitzpatrick 3c5b519c1e Merge "website: redirect to https" 2016-04-26 00:40:22 +00:00
mpl d9fa1ed87e website: do a full cloning of camlistore.org on startup
We used to have --depth=1 when cloning camlistore.org on startup, for
efficiency reasons.
But not having all the commits locally caused problems when pushing to
github, because it would see the remote had commits that we didn't.
So we're now doing a full cloning.

It looks like it's now taking ~4s (as opposed to ~2.5s before), and
consuming ~50MB diskspace (as opposed to 35MB before).

Plus a few bugfixes.

Change-Id: If7dbae1d3119d8b3336fb7d735f6bd0ba7606fc6
2016-04-25 17:30:17 -07:00
Brad Fitzpatrick 8a2f1f4a65 website: redirect to https
Fixes #721

Change-Id: Ib75e1023eb56afc6c15e826bc0d26ff6b3c7a859
2016-04-25 15:12:08 -07:00
Mathieu Lonjaret 36d9d8d7eb Merge "website: sync commits to github" 2016-04-25 16:25:56 +00:00
mpl 43f2e48dd0 website: sync commits to github
Fixes issue #708

Change-Id: I0e081724134ab08c736b00bd2ebe81eb9028ace7
2016-04-24 22:28:16 -07:00
Brad Fitzpatrick 75d60962f6 Move remaining stuff in third_party/* to vendor/*
Change-Id: Ifbcc02817083cba68d8c1acec3e6ec50e8f61149
2016-04-20 16:49:15 -07:00
Will Norris 77ed42edf8 add canonical import paths
The import path was added to the go file that included the package
documentation if one existed.  Otherwise, I used what seemed to be the
primary file for the package.

Fixes #689

Change-Id: If51be0e86529fd6f179e80af6781e639f8550fd2
2016-03-13 19:57:14 -07:00
mpl 255b51a5a0 website: always remove old demoblob3179 container
Because it can happen that we end up with with an already stopped/killed
demoblob3179, in which case we need to remove it even when killing it is
unsuccessful (because it was already dead).

Change-Id: I289e96284deebeaaa775c23ef6f3fe3bffc3777c
2016-02-08 22:05:37 +01:00
mpl 88b9dc826f website: print error for demo blobserver
Change-Id: Ic582b65d94dd17379feb2ac9e8f15d8e3bb4a05c
2016-02-08 14:52:18 +01:00
mpl f478c6cc67 website: chrome bug repro demo
For issue #660

Change-Id: I7b53da99b4ba50a6ec5818d291083aab72f994ab
2016-01-19 00:03:36 +01:00
Brad Fitzpatrick cf0c847fbf website: the 0.9 release is now named Astrakhan, and out.
And fix some text and redirects.

Change-Id: I8cf26a028fe79b6daa8817caff85279e314d12c6
2015-12-30 11:10:51 -08:00
Brad Fitzpatrick 33ce243eb9 website: redirect bare /dl to /download
Change-Id: Ie5f249d478fcb589824c056bf61c7af7c54155ab
2015-12-30 10:50:54 -08:00
Brad Fitzpatrick 833fbf0c85 website: use datastore to record which commits we've emailed about
Change-Id: I55d2b0e5f6de3377ef7240246e4ee44c8c2ebfa5
2015-12-28 21:08:17 -08:00
Brad Fitzpatrick b22a78deda Fix launcher. Work in localhost dev mode more easily. 2015-12-27 13:52:35 -08:00
Brad Fitzpatrick a728492a68 website: add -dev flag, always install something at /launcher/
Make it at least show the error reason if it can't install
the launcher.
2015-12-26 20:49:29 -08:00
Brad Fitzpatrick 1ef5252da3 website: flag doc cleanup, and log before listening 2015-12-24 14:51:15 -08:00
mpl 4b2b539e0c website: use cloud/storage Client instead of googlestorage
Context: issue #652

Change-Id: I7f36eeeb4be015ef117704742ec8ab4e4eeea7ba
2015-12-07 19:27:28 +01:00
mpl 1e2a306e8d vendor: add go4.org/cloud, update google.golang.org/api, and golang.org/x/net/context
Import go4.org/cloud/cloudlaunch and go4.org/cloud/gceutil, which were
previously in pkg/cloudlaunch, at rev
2c497a8c195996d6c48402c150da4919c1d99f33

Because the version on go4.org was updated to use the latest
google.golang.org/api/* , we also update our
vendor/google.golang.org/api/* to rev
030d584ade5f79aa2ed0ce067e8f7da50c9a10d5

This in turns requires to add vendor/golang.org/x/net/context/ctxhttp
(and update vendor/golang.org/x/net/context/) to rev
4f2fc6c1e69d41baf187332ee08fbd2b296f21ed

Also adding vendor/google.golang.org/api/gensupport for the same reason.

Change-Id: I9d6c3059626f7ecc0fbf2df0415043a464d27caa
2015-11-25 19:29:46 +01:00
mpl e1798e796e website: set builder redirect in production
Change-Id: I36c9be9786b14a564b4c67e3562cd06ae402ae25
2015-11-20 16:47:43 +01:00
mpl 621388f0bf camweb: send deploy handler logs to GCLogging as well
When logging to Google Cloud Logging, make sure the deploy handler logs
are written there too.

We tag them with the from:camli-gce-launcher label.

Change-Id: I4dab010009f98efd2aeba7c57dc4ab3ca6a566b3
2015-11-16 23:40:05 +01:00
mpl a2aee25cfb website: update (camlistored) deployer to run on GCE
Change-Id: I205c6df51e8d8c4bcf2710fc9da1db68419fc2df
2015-11-13 17:41:46 +01:00
Brad Fitzpatrick afd28ae279 website: name the demo blobserver container, kill on start-up 2015-11-11 14:45:50 +00:00
Brad Fitzpatrick 321272d65c website: make sure 'src/camlistore.org' is in our source path for godoc
It was making that assumption and crashing otherwise.
2015-11-11 14:32:00 +00:00
Brad Fitzpatrick 96dc004af7 website: run on GCE under CoreOS. Containerize demo blob server. 2015-11-11 12:58:01 +00:00
Brad Fitzpatrick b4ef019bc2 website: now runs on GCE/coreos with cloudlaunch 2015-11-10 12:10:16 +00:00
mpl 96bde7b1d4 website/camweb: setup TLS for when in production (on GCE)
Change-Id: I7d3ec69d0a4cdae4493cbe62ec14ea4e41f5d0ba
2015-11-10 10:14:07 +01:00
Brad Fitzpatrick 5b00bc2617 website: untar content to local disk when running in prod on GCE 2015-11-08 21:45:09 +00:00