secubox-deb/image/kiosk/xinitrc
CyberMind-FR cd45e16441 fix(kiosk): Use HTTP for localhost (nginx serves HTTPS only on secubox.local)
- xinitrc: Change KIOSK_URL from https://localhost to http://localhost
- secubox-kiosk.sh: Change default from https://127.0.0.1 to http://127.0.0.1

nginx config serves:
- HTTP on port 80 for localhost/127.0.0.1 (direct content, no redirect)
- HTTPS on port 443 for secubox.local and external access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-04-11 12:06:49 +02:00

20 lines
473 B
Bash

#!/bin/bash
# SecuBox-DEB :: X Session initialization for kiosk mode
# CyberMind - https://cybermind.fr
# Source user profile if exists
[[ -f ~/.profile ]] && . ~/.profile
# Set environment
export DISPLAY=:0
# Use HTTP for localhost (nginx serves HTTPS only on secubox.local)
export KIOSK_URL="http://localhost/"
# Start window manager (minimal)
if command -v openbox &>/dev/null; then
openbox &
fi
# Run kiosk script
exec /usr/share/secubox/kiosk/secubox-kiosk.sh