User Tools

Site Tools


projets:fuz:spaceapi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
projets:fuz:spaceapi [2020-11-10 00:12] – [2020-11-04] fix external link Lomanicprojets:fuz:spaceapi [2021-02-20 23:16] – [Resources] +grafana Lomanic
Line 17: Line 17:
   * 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.io/
  
 Example of served JSON: Example of served JSON:
Line 93: Line 94:
 <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" {
projets/fuz/spaceapi.txt · Last modified: 2023-02-02 22:06 by 127.0.0.1