feat: enable wayvnc LAN access and update hermes model
Configure websockify to listen on 0.0.0.0:6080 and open port 6080 in the firewall, allowing direct LAN access to the noVNC web client. Update access documentation. Switch the default AI model for Hermes from Claude Sonnet to DeepSeek V4.1 Flash (OpenRouter) and adjust the fallback provider chain.
This commit is contained in:
@@ -4,11 +4,17 @@
|
||||
# BindsTo=graphical-session.target + Before=graphical-session.target, donc démarrer
|
||||
# niri.service active aussi graphical-session.target, ce qui déclenche ce service).
|
||||
#
|
||||
# Sécurité : tout écoute uniquement sur 127.0.0.1 (pas d'exposition LAN, pas
|
||||
# d'auth nécessaire). Accès distant :
|
||||
# ssh -L 6080:localhost:6080 -L 5900:localhost:5900 marc@tower
|
||||
# client web noVNC : http://localhost:6080/vnc.html
|
||||
# ou client VNC natif : vnc://localhost:5900 (macOS : `open vnc://localhost:5900`)
|
||||
# Accès :
|
||||
# LAN : http://192.168.1.44:6080/vnc.html
|
||||
# (port 6080 ouvert dans profiles/tower/configuration.nix)
|
||||
# Pangolin SSO : https://vnc.marcpartensky.com/vnc.html
|
||||
# (ressource HTTP déclarée dans services/newt/default.nix)
|
||||
# tunnel SSH : ssh -L 6080:localhost:6080 marc@tower puis http://localhost:6080/vnc.html
|
||||
# client natif : vnc://localhost:5900 via le tunnel SSH (wayvnc reste loopback)
|
||||
#
|
||||
# Sécurité : websockify écoute sur 0.0.0.0:6080, donc sur le LAN sans aucun mot de
|
||||
# passe propre (ni noVNC ni wayvnc n'en ont). Ne pas publier 6080 au-delà du LAN.
|
||||
# Sur le nom public, l'authentification est celle de Pangolin (SSO).
|
||||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.wayvnc];
|
||||
|
||||
@@ -38,7 +44,10 @@
|
||||
PartOf = ["graphical-session.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.python3Packages.websockify}/bin/websockify --file-only --web ${pkgs.novnc}/share/webapps/novnc 127.0.0.1:6080 localhost:5900";
|
||||
# 0.0.0.0: joignable depuis le LAN (port ouvert dans profiles/tower) ET
|
||||
# depuis newt en local, qui cible 127.0.0.1:6080. wayvnc, lui, reste sur
|
||||
# loopback : un seul port ouvert vers l'extérieur.
|
||||
ExecStart = "${pkgs.python3Packages.websockify}/bin/websockify --file-only --web ${pkgs.novnc}/share/webapps/novnc 0.0.0.0:6080 localhost:5900";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user