heather: add JupyterLab systemd service (jupyter.iscg.dev, localhost:8890, resource limits, caddy basicauth)

This commit is contained in:
mikl 2026-09-11 03:12:01 +03:00
commit d4153028d6
3 changed files with 78 additions and 0 deletions

View file

@ -113,6 +113,16 @@ Allow: /" 200
reverse_proxy 127.0.0.1:6767
'';
# JupyterLab (ботать аналитику с iPad). Два слоя защиты:
# Caddy basicauth (пароль в pass iscg.dev/jupyter/basicauth)
# + Jupyter token внутри. Лимиты памяти/CPU в jupyter.nix.
"jupyter.iscg.dev".extraConfig = ''
basicauth {
mikl $2a$14$u4jCpuLFeymewgx1uuGRs.6.L1JYf7vMtgwhU/Wvw5iuXJflynvSu
}
reverse_proxy 127.0.0.1:8890
'';;
# File explorer (directory listing) для раздачи файлов через браузер.
# browse включает Caddy's built-in directory listing. Корень /var/www/pub.
# Без auth — класть только публичные файлы.