Skip to content

Instantly share code, notes, and snippets.

sparkx@dockers-dev:~/seo-audits-toolkit$ docker logs osat-dashboard > c.txt
{"level":"info","ts":1617190208.594365,"msg":"using provided configuration","config_file":"/etc/Caddyfile","config_adapter":""}
{"level":"info","ts":1617190208.6293168,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["localhost:2019","[::1]:2019","127.0.0.1:2019"]}
{"level":"info","ts":1617190208.639589,"logger":"http","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80}
{"level":"info","ts":1617190208.6404521,"msg":"autosaved config","file":"/opt/osat/.config/caddy/autosave.json"}
{"level":"info","ts":1617190208.6404672,"msg":"serving initial configuration"}
{"level":"info","ts":1617190208.6405208,"logger":"watcher","msg":"watching config file for changes","config_file":"/etc/Caddyfile"}
{"level":"info","ts":1617190208.6428616,"logger":"tls.cache.maintenance","msg":"started background
Errata (Start Reading Here):
Flash = micro-controller storage facility that can be written ~100.000 times (hardware related, ESP-12e has 4Mb)
Flash is used for 3 things:
- Firmware = the main program interpreter, in our case Lua
- SPIFFS = think at this as a partition of the hard-drive in your computer that stores all sort of files
SPIFFS is used for 3 things:
- to store/load program files.lua directly, including init.lua !!! these files will be loaded in RAM and interpreted/compiled to be executed !!!
- to store ANY type of files you need (Eg: configs, logs, images, certificates, etc.)
- to store a special .bin file called LFS that contains PRE-COMPILED .lua files (your program) - https://nodemcu.readthedocs.io/en/dev/lfs/