No description
  • Blade 49.9%
  • PHP 45%
  • JavaScript 4.7%
  • CSS 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-14 21:35:51 +02:00
app feat(playlists): filter out certain public playlists when not logged in 2026-09-14 21:35:51 +02:00
bootstrap Add Passkey Support & Pint 2026-04-21 15:56:46 +02:00
config feat(admin): rebuild release upload form with Livewire and CDN validation 2026-08-08 13:18:57 +02:00
database feat(playlists): filter out certain public playlists when not logged in 2026-09-14 21:35:51 +02:00
lang feat(admin): overhaul admin navigation 2026-09-13 17:07:56 +02:00
public Init 2025-09-18 15:31:27 +02:00
resources Remove unused import 2026-09-13 20:05:57 +02:00
routes feat(admin): overhaul backrgound pages 2026-09-13 16:59:02 +02:00
storage Init 2025-09-18 15:31:27 +02:00
tests feat(playlists): filter out certain public playlists when not logged in 2026-09-14 21:35:51 +02:00
.editorconfig Init 2025-09-18 15:31:27 +02:00
.env.example Use meilisearch in nav search 2025-10-23 15:30:32 +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 chore(deps): add Laravel Boost development tooling and configuration 2026-08-09 13:12:41 +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 Add composer dev command 2026-09-13 14:20:39 +02:00
composer.lock chore(deps): add Laravel Boost development tooling and configuration 2026-08-09 13:12:41 +02:00
package-lock.json Use CSS classes to hide n-th elements instead of JS 2026-05-27 17:12:13 +02:00
package.json Add Passkey Support & Pint 2026-04-21 15:56:46 +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
postcss.config.js Init 2025-09-18 15:31:27 +02:00
README.md Update Readme 2026-03-01 16:07:09 +01:00
tailwind.config.js feat(admin): overhaul alert management and public banners 2026-09-13 19:49:36 +02:00
vite.config.js feat(admin): rebuild release upload form with Livewire and CDN validation 2026-08-08 13:18:57 +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_20.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://gitea.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 view:clear && php84 artisan optimize:clear && php84 artisan cache:clear && service php8.4-fpm restart
php84 artisan up