Servers log API is currently two components:
- READ - /srv/api/data/servers-log-all.json served as /servers-log/all.json
- CREATE - PHP application served through api.nasqueron.org php-fpm socket from /srv/api/servers-log/src/public/index.php
For reference, that's the only "local" back-end component for the API, all the others are proxied to Docker PaaS or to Vault for certificate information (CA, CRL). We also serve static JSON files locally.
Plans:
- devserver for servers log
- On WindRiver:
- Serve the servers log PHP application
- Serve the log file statically
- On web-001:
- Proxy both
- On WindRiver:
- web-001 for servers log
- Recreate the /srv/api hierarchy
- Move servers log JSON file when we migrate the DNS
- To avoid write conflict between the logs:
- don't serve anymore locally but proxy from Ysul to web-001
- or simply ensure api.nasqueron.org is declared in /etc/hosts in Ysul, as it's only Wearg which currently write to it