No description
  • PHP 48.1%
  • Blade 46.9%
  • JavaScript 4%
  • Shell 0.6%
  • CSS 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-22 13:37:18 +02:00
app fix(security): harden guest content, downloads and auth endpoints 2026-10-22 12:02:30 +02:00
bootstrap Add Passkey Support & Pint 2026-04-21 15:56:46 +02:00
config fix(security): harden guest content, downloads and auth endpoints 2026-10-22 12:02:30 +02:00
database test: make schema dump importable on MySQL 8 2026-09-17 14:55:46 +02:00
docs test(modal-markup): guard the whole tw-elements removal, not just modals 2026-09-19 19:56:47 +02:00
lang feat(modals): rebuild the remaining tw-elements modals with Alpine 2026-09-19 19:23:24 +02:00
public Init 2025-09-18 15:31:27 +02:00
resources fix(security): upgrade tailwindcss to v4 and resolve npm CVEs 2026-10-22 13:37:18 +02:00
routes fix(security): harden guest content, downloads and auth endpoints 2026-10-22 12:02:30 +02:00
storage Init 2025-09-18 15:31:27 +02:00
tests fix(security): harden guest content, downloads and auth endpoints 2026-10-22 12:02:30 +02:00
.editorconfig Init 2025-09-18 15:31:27 +02:00
.env.example fix(security): harden guest content, downloads and auth endpoints 2026-10-22 12:02:30 +02:00
.gitattributes Init 2025-09-18 15:31:27 +02:00
.gitignore chore(deps): add Laravel Boost development tooling and configuration 2026-08-09 13:12:41 +02:00
AGENTS.md docs(modals): document the modal component and its trigger gotcha 2026-09-19 16:40:15 +02:00
artisan Init 2025-09-18 15:31:27 +02:00
boost.json chore(deps): add Laravel Boost development tooling and configuration 2026-08-09 13:12:41 +02:00
composer.json fix(security): reject unsigned altcha challenges 2026-09-17 14:57:34 +02:00
composer.lock update(dependencies): fix symfony cve 2026-10-20 18:15:10 +02:00
package-lock.json fix(security): upgrade tailwindcss to v4 and resolve npm CVEs 2026-10-22 13:37:18 +02:00
package.json fix(security): upgrade tailwindcss to v4 and resolve npm CVEs 2026-10-22 13:37:18 +02:00
phpunit.xml fix(tests): don't drop non testing db 2026-09-13 16:35:59 +02:00
pint.json Pint 2026-04-18 14:18:52 +02:00
README.md feat(git): Update git url 2026-10-20 18:52:54 +02:00
update.sh Add update script 2026-09-19 14:14:56 +02:00
vite.config.js fix(security): upgrade tailwindcss to v4 and resolve npm CVEs 2026-10-22 13:37:18 +02:00

hstream Logo

hstream Website

Install (Ubuntu)

# Install PHP
sudo add-apt-repository ppa:ondrej/php
apt update && apt upgrade
apt install php8.4 php8.4-xml php8.4-mysql php8.4-gd php8.4-zip php8.4-curl php8.4-mbstring

# Install NodeJS
curl -sL https://deb.nodesource.com/setup_24.x -o /tmp/nodesource_setup.sh
sudo bash /tmp/nodesource_setup.sh
sudo apt install -y nodejs

# Install composer
cd /usr/bin/
curl -sS https://getcomposer.org/installer | sudo php
mv composer.phar composer

# Install NGINX (skip for local dev)
apt install nginx
apt install php8.4-fpm

# Install MariaDB
apt install mariadb-server
sudo mysql_secure_installation

# Install Meilisearch
echo "deb [trusted=yes] https://apt.fury.io/meilisearch/ /" | sudo tee /etc/apt/sources.list.d/fury.list
sudo apt update && sudo apt install meilisearch

# Clone Repo
cd /var/www
git clone https://git.hstream.moe/w33b/hstream.git
chown -R www-data hstream/
git config --global --add safe.directory /var/www/hstream

# Install dependencies
composer install --optimize-autoloader --no-dev
npm install

# Build Node modules
npm run build

Supervisor

apt install supervisor

nano /etc/supervisor/conf.d/laravel-queue.conf :

[program:laravel-queue]
process_name=%(program_name)s_%(process_num)02d
command=php84 /var/www/hstream/artisan queue:work --queue=default --sleep=3 --tries=3 --max-time=3600
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=www-data
numprocs=1
redirect_stderr=true
stdout_logfile=/var/log/laravel-queue.log


sudo systemctl start supervisor
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start laravel-queue:*

Backup

# DB
mysqldump -u root hstream > backup_2023_11_01.sql

# WWW
zip -r hstream_2023_11_30.zip hstream/

Update

php84 artisan down
git pull
npm run build
php84 artisan optimize:clear
service php8.4-fpm restart
php84 artisan up