Commit Graph

44 Commits

Author SHA1 Message Date
Josh Huckabee bdac95b218 Fix dev server TLS config.
Change-Id: I630b7381d72ce4538de489db69e6d8300afb65ce
2013-06-25 07:44:49 -07:00
Brad Fitzpatrick 0cc0cadee9 dev-server: add a share handler
Change-Id: I211fe078d1bc32b5abb4d3a2c48b0a8b566236de
2013-06-23 13:50:02 -07:00
Brad Fitzpatrick 10d000d900 ui: serve Closure from embedded zip data when available
Change-Id: I9bb6bb4f13f69b293fd98441d82068c0677ffbd5
2013-06-18 23:14:36 -07:00
Brad Fitzpatrick 3176c5be43 encrypt: require big ugly I_AGREE configuration in order to use it, so people don't get misled
Change-Id: I4259e423d6a4b733f353a1e8792c6b8cb3c95c43
2013-06-15 20:08:37 -07:00
Brad Fitzpatrick d12007af52 encrypt: enough of a shell to start up in dev-server, even if nothing works yet
Change-Id: I7e3c17d952a943afd4cfb57939f25bf181aaa6fd
2013-06-15 15:05:27 -07:00
Brad Fitzpatrick 5761b57d69 Work on implementing new static resource plan, as documented in the big TODO item.
Change-Id: I79d7665a24633630c39cceb5e1ab49cbb0300150
2013-06-12 10:10:24 -07:00
mpl 7059a616c0 show server status on index page
We're only showing build version for now.
Next step would be status handler.

See http://camlistore.org/issue/111

Change-Id: I9e0792abe9ffed8139d38478d186b6e75f99de7e
2013-06-09 18:46:24 +02:00
mpl 11a3f78691 WIP: switch from ui to newui
This CL proposes 4 changes:

1) When making the embeds, any .html files in newui is rewwritten
on the fly so that the resulting embed uses all.js instead of
individual .js files. all.js is the only javascript file embedded
for newui.

2) Various bugs and paths in the newui/*.js files were fixed so that
everything works when using all.js

3) pkg/server/ui.go was modified so that all features from ui should
now have an equivalent in newui, that is served through ui/new/.
In a next step, we can move back everything from newui/ into ui/ and
completely get rid of the old ui.

4) The published gallery now uses closure too.
In another next step, we should probably work on serving its static
part directly from an .html file or (include it in the zembed somehow?)
instead of generating it at every request. Or at least cache it?

This commit includes the zembeds in newui, except for zembed_all.js.go
since it is large and it would take a lot of space in the git history
everytime we change it.
The plan is to roll-sum it into chunks to address that problem.

Change-Id: I381d8ddf3a2bbe37e3c4b1c4bf423f16beffaaf4
2013-06-04 16:34:51 +02:00
Brad Fitzpatrick abb0e307d6 Show owner name on index page
Change-Id: Ic845283da88eea57a43a13ea13b2993070856102
2012-12-11 18:41:23 -08:00
Brad Fitzpatrick a41269e78e Reindex all dev-server blobs into memindex on restart.
Required some sync work (full syncs on start, blocking full syncs on
start, and also adding a dev-only hack to force a depedency from
search -> sync, to control the handler initialization order, otherwise
publish handlers would race with the sync handler and they'd create
new "blog" and "pics" permanodes and we'd end up with duplicates).
2012-11-07 22:40:17 +01:00
Brad Fitzpatrick bccf8ed575 Move discovery up from the UI handler to the Root handler. 2012-11-07 18:57:43 +01:00
mpl 295cbade1b Add postgres support
Also added the -short option for make presubmit
because postgres test is too slow.

Change-Id: I6be21c4d4cd67671eb44ab65333fc32c1e261bbd
2012-11-03 19:59:22 +01:00
Brad Fitzpatrick 73cd34a6a0 serverconfig & camlistored: simplify low/high-level config bootstrapping.
Change-Id: I22e003ff2eaa29b09a5c4cbb59afa1ca9bd624df
2012-03-19 13:09:00 -07:00
Brad Fitzpatrick f745487a49 In dev server config, use /bs-and-maybe-also-index/ to speed public permanode bootstrap blob uploads.
Change-Id: Ib32164ca9e3e958d34906077a1841800026d42ee
2012-03-03 12:54:20 -08:00
mpl a7b2879e43 mongodb indexer + dependencies (mgo, bson, gocheck).
Change-Id: I6a54ff99777b6283829f3dfcafb0295b6022d5a7
2011-12-31 23:36:16 +01:00
Brad Fitzpatrick 4af82166a3 Missing part of a16b1f43ca, which broke search.
Change-Id: I6d726982b9ab5d6aaaef742cb5047f84e2f22c38
2011-12-10 17:28:00 -08:00
mpl 9bfe46208f some more auth, continuation of I14a047f1a164b64062d94da0db7a64a658b086ae
Change-Id: I763c797f110854e0a3c906aceac72fff234f43df
2011-11-29 00:10:50 +01:00
Brad Fitzpatrick 1ad31ef6c8 Merge "auth: added username, camput can do https" 2011-11-28 02:06:43 +00:00
mpl 0e71f20415 auth: added username, camput can do https
Change-Id: I14a047f1a164b64062d94da0db7a64a658b086ae
2011-11-27 01:29:24 +01:00
Brad Fitzpatrick 911478aa30 Add dev-server --memory flag to disable mysql indexer and use in-memory index.
This is for testing the new generic indexing infrastructure.

Change-Id: I83798558a3de6ab2c53ae10e47f7189461043420
2011-11-26 15:30:22 -05:00
mpl e233c981e0 auth: config for a non dev mode,
self gen tls certs, force https in non dev

Change-Id: I7faa6b35f44a7925b06d22ade7f5986a12728362
2011-11-10 16:20:53 +01:00
mpl 93ea543b39 hacky (but working) draft for caching thumbnails
Change-Id: I3c4714e76089c406019cf051c07ab05546af34ed
2011-10-28 19:25:10 +02:00
Brad Fitzpatrick 41ecf43eb0 publish: let js & css files be configurable
Temporary hack to unblock Lindsey

Fixes (partially) http://code.google.com/p/camlistore/issues/detail?id=26

Change-Id: I9541d62622116bd30ce7d7e5507a4808089fe6d7
2011-07-08 10:03:53 -07:00
Brad Fitzpatrick 18addb2c26 Let all handlers be able to be disabled in config file
Fixes http://code.google.com/p/camlistore/issues/detail?id=24

Change-Id: Ia54815f70c62955c4abe442237b35e4ef6113448
2011-07-08 09:08:41 -07:00
Brad Fitzpatrick 741985eb9e dev-server: make mysql db name a function of $USER
This permits multi-user development servers without
stepping on toes.

Change-Id: I563fd93b2bdb23362a96a616c71e0efa3b984ba9
2011-07-01 19:17:08 -07:00
Brad Fitzpatrick 23ff0a071f publish work: optionally create publish root permanodes+claims on start
Change-Id: I8659e977cea8872443ff2b311a7d0d8a2804c269
2011-06-23 12:12:37 -07:00
Brad Fitzpatrick 12cdf34ea3 Start of publish handler creating its root permanode.
Change-Id: Iedefee0650bd250933e104328023c24e40a94bf6
2011-06-22 22:26:11 -07:00
Brad Fitzpatrick 2790963643 More publish work, making UI handler aware of publish roots.
Change-Id: I9cbb00aa3506cece8cf3d7a7b11d445662c4873e
2011-06-19 13:09:43 -07:00
Brad Fitzpatrick 0d7581ede6 Start of publish handler.
Change-Id: I229c9e00a19aa985050373beda696c5468a94105
2011-06-16 20:48:06 -07:00
Brad Fitzpatrick fa3715134a Start of indexer indexing file schema's content digests. 2011-06-08 17:49:31 -07:00
Brad Fitzpatrick 8d84a4de10 Add blobref.SeekTester interface; fixing UI downloads from cond storage. 2011-06-04 09:58:50 -07:00
Brad Fitzpatrick 0df00167ec cond: implement it (routing incoming blobs) and use it. 2011-06-04 08:46:42 -07:00
Brad Fitzpatrick c6cfe2fda4 Start of 'cond' handler. 2011-06-03 21:52:56 -07:00
Brad Fitzpatrick 7fd8263c29 upload public key on start 2011-06-03 18:42:31 -07:00
Brad Fitzpatrick dde4f6983f reference correct search owner in dev server config 2011-05-29 22:52:14 -07:00
Brad Fitzpatrick 0385f7baaa camlistored: in config, prefix all storage handlers with 'storage-' 2011-05-29 22:28:17 -07:00
Brad Fitzpatrick ccf33926c8 Replica blob handler for live replication. 2011-05-22 21:22:21 -07:00
Brad Fitzpatrick 621d3e2cc9 Start of 'shard' handler. 2011-05-21 09:26:20 -07:00
Brad Fitzpatrick 0e9921e6f3 Update to get dev-server working again after jsonsign & Go changes. 2011-05-21 08:51:49 -07:00
Brad Fitzpatrick 3073e02803 Add dev-server -a option to listen on all interfaces. 2011-05-14 16:40:16 -07:00
Brad Fitzpatrick bbad19c3a6 Start of putting auto-sync into camlistored. 2011-05-09 06:05:58 -07:00
Brad Fitzpatrick 6d0639054d woot, signing handler hooked up to web UI now. 2011-05-05 21:21:30 -07:00
Brad Fitzpatrick 0ccf46e561 start writing up jsonsign handler to camlistored. 2011-05-01 21:23:31 -07:00
Brad Fitzpatrick 36989b6dcf Add dev-server helper script to run a full dev config. 2011-05-01 18:36:11 -07:00