Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
projets:fuz:spaceapi [2020-10-18 00:28] – [Deployment] +https://certbot.eff.org/docs/using.html#renewal-config-file Lomanic | projets:fuz:spaceapi [2021-09-10 12:20] – [Resources] metrics.spaceapi.io -> .community Lomanic |
---|
| |
===== Goals ===== | ===== Goals ===== |
* serve a [[https://spaceapi.io/|SpaceAPI]] endpoint at https://spaceapi.fuz.re | * serve a [[https://spaceapi.io/|SpaceAPI]] endpoint at https://spaceapi.fuz.re (**done**) |
* set the opening status according to the [[presence button]] API at https://presence.fuz.re/api | * set the opening status according to the [[presence button]] API at https://presence.fuz.re/api (**done**) |
* add it to the [[https://spaceapi.io/directory/|directory]] so we can have nice opening stats at https://spaceapi.vanheusden.com/ and [[https://spaceapi.io/how-to-use/|other great goodies]] (we could finally have the opening state on the wiki: https://github.com/HackspaceJena/hackspace-status-dokuwiki-plugin, via [[https://www.binary-kitchen.de/wiki/doku.php?do=edit|Binary Kitchen wiki]]!) | * add it to the [[https://spaceapi.io/directory/|directory]] so we can have nice opening stats at https://spaceapi.vanheusden.com/ and [[https://spaceapi.io/how-to-use/|other great goodies]] (we could finally have the opening state on the wiki: https://github.com/HackspaceJena/hackspace-status-dokuwiki-plugin, via [[https://www.binary-kitchen.de/wiki/doku.php?do=edit|Binary Kitchen wiki]]!) (**done**) |
| |
===== Resources ===== | ===== Resources ===== |
* https://spaceapi.io/provide-an-endpoint/ | * https://spaceapi.io/provide-an-endpoint/ |
* https://github.com/SpaceApi/validator | * https://github.com/SpaceApi/validator |
| * https://metrics.spaceapi.community/ |
| |
Example of served JSON: | Example of served JSON: |
<code> | <code> |
$HTTP["host"] == "spaceapi.fuz.re" { # added by Lomanic 20201017 | $HTTP["host"] == "spaceapi.fuz.re" { # added by Lomanic 20201017 |
$HTTP["scheme"] == "http" { | $HTTP["scheme"] == "http" { |
server.document-root = "/var/www/fuz.re/spaceapi/site" | server.document-root = "/var/www/fuz.re/spaceapi/site" |
$HTTP["url"] !~ "^/.well-known/acme-challenge/" { | $HTTP["url"] !~ "^/.well-known/acme-challenge/" { |
url.redirect = (".*" => "https://${url.authority}${url.path}${qsa}") | url.redirect = (".*" => "https://${url.authority}${url.path}${qsa}") |
} | } |
} | } |
| |
$SERVER["socket"] == ":443" { | $SERVER["socket"] == ":443" { |
[[https://github.com/Lomanic/fuz-spaceapi|Pushed to GH]], made the app fully configurable via env variable, deployed on sonic by following what I (Lomanic) did during the [[evenements:log:20200606|Online Fuzturday #1]]. Implemented certbot properly for this domain (see Deployment). | [[https://github.com/Lomanic/fuz-spaceapi|Pushed to GH]], made the app fully configurable via env variable, deployed on sonic by following what I (Lomanic) did during the [[evenements:log:20200606|Online Fuzturday #1]]. Implemented certbot properly for this domain (see Deployment). |
| |
| ==== 2020-11-04 ==== |
| |
| Pull request opened https://github.com/SpaceApi/directory/pull/157 and merged! The hackerspace is now on [[https://api.spaceapi.io/]]! |