mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 11:12:29 +00:00
- 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>
20 lines
473 B
Bash
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
|