projets:fuz:spaceapi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
projets:fuz:spaceapi [2020-11-10 00:12] – [2020-11-04] fix external link Lomanic | projets:fuz:spaceapi [2022-09-22 09:45] – update status & link to HaD article Lomanic | ||
---|---|---|---|
Line 5: | Line 5: | ||
* Owner: [[: | * Owner: [[: | ||
* Participants: | * Participants: | ||
- | * Status: **running** | + | * Status: **offline** (since moving to new space in Montreuil) |
* Project created on **Sat 17-10-20** by **[[: | * Project created on **Sat 17-10-20** by **[[: | ||
===== Goals ===== | ===== Goals ===== | ||
+ | |||
* serve a [[https:// | * serve a [[https:// | ||
* set the opening status according to the [[presence button]] API at https:// | * set the opening status according to the [[presence button]] API at https:// | ||
Line 14: | Line 15: | ||
===== Resources ===== | ===== Resources ===== | ||
+ | * Introduction to SpaceAPI on HaD https:// | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
Example of served JSON: | Example of served JSON: | ||
Line 82: | Line 85: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
EOF | EOF | ||
- | sudo systemctl enable | + | sudo systemctl enable |
- | sudo systemctl start spaceapi.service | + | |
curl localhost: | curl localhost: | ||
sudo mkdir -p / | sudo mkdir -p / | ||
- | sudo certbot certonly --webroot -w / | + | sudo certbot certonly --webroot -w / |
</ | </ | ||
- | No need to mess with anything else, certbot is already called every ~12 hours as it was installed from Debian repos https:// | + | No need to mess with anything else, certbot is already called every ~12 hours (see ''/ |
+ | |||
+ | (To note: the certbot command was originally ''< | ||
Corresponding lighttpd vhost config | Corresponding lighttpd vhost config | ||
< | < | ||
$HTTP[" | $HTTP[" | ||
- | | + | |
- | server.document-root = "/ | + | server.document-root = "/ |
$HTTP[" | $HTTP[" | ||
url.redirect = (" | url.redirect = (" | ||
} | } | ||
- | | + | |
$SERVER[" | $SERVER[" | ||
ssl.engine | ssl.engine | ||
proxy.server = ( "" | proxy.server = ( "" | ||
- | ssl.ca-file | + | ssl.pemfile |
- | ssl.pemfile | + | ssl.privkey |
} | } | ||
} | } |
projets/fuz/spaceapi.txt · Last modified: 2023-02-02 22:06 by 127.0.0.1