Commit Graph

4 Commits

Author SHA1 Message Date
mpl 7410fc29ab pkg/server/help: fix server's hostname when needed
When baseURL or listen is something like ":3179" or "0.0.0.0:3179", the
resulting server hostname in the client config would be useless.
Therefore, in that case we use req.Host to set the hostname instead.

Fixes issue #641

Change-Id: I33d65776fbac945a411f4328ebbbc5763dec8eb6
2015-10-21 00:16:21 +02:00
mpl 6dfe405666 camput init: get client config from server help handler
This is particularly useful for getting clients fully configured for a
server on the same host.

Context:
https://github.com/scaleway-community/scaleway-camlistore/issues/2

Change-Id: I667dd32a80cba4e1e6f6a4ca86a0497a72047d30
2015-09-28 16:44:38 +02:00
mpl 483d9dfacf server/help: Add search bar predicates. reorganize.
Change-Id: Ia41b9dbc52dd90e80ab2a429b515cd2491fa03dc
2015-06-29 17:54:17 +02:00
Mario Russo 7b1903d5b1 pkg/server: added help handler
- Available at '/help/'
- Loads and parses server config upon init and generates the necessary client config for access
- Links to 'Downloadable Tools' are not functional (task is not yet completed)
- A link was added to the default server page as well as a 'Help' option to the Piggy menu

Issue: #536

Change-Id: I10629de034c908ebc76f6feacbbfca1df7bf1c2b
2015-05-28 10:02:17 +02:00