mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-09-06 13:39:39 +00:00
I don't even know.
Filled out API for user management Proper escaping of user input for SQL queries (stream keys aren't user input) Filled out frontend with profile management, vods, etc. I don't remember there's probably more, fuck.
This commit is contained in:
@ -7,5 +7,10 @@ CREATE TABLE users(
|
||||
password_hash BINARY(60),
|
||||
stream_key CHAR(20),
|
||||
record_flag TINYINT,
|
||||
is_mod TINYINT
|
||||
);
|
||||
CREATE TABLE user_meta(
|
||||
username VARCHAR(25),
|
||||
title VARCHAR(120),
|
||||
about VARCHAR(5000),
|
||||
live TINYINT
|
||||
);
|
@ -13,6 +13,8 @@ do
|
||||
echo "Please the domain name for your instance.[]"
|
||||
read domain
|
||||
done
|
||||
echo "Enter the contact email for the instance."
|
||||
read email
|
||||
echo "Please enter the path to the ffmpeg binary on your system.[$(which ffmpeg)]"
|
||||
read ffmpeg
|
||||
ffmpeg="${ffmpeg:=$(which ffmpeg)}"
|
||||
@ -30,13 +32,13 @@ read dbhost
|
||||
dbhost="${dbhost:=localhost}"
|
||||
if [ "$dbhost" != "localhost" ]
|
||||
then
|
||||
echo "Please enter the ip this server will connect to the database with.[*]"
|
||||
echo "Please enter the public ip or hostname this server will connect to the database with.[*]"
|
||||
read dbclient
|
||||
dbclient="${dbclient:='*'}"
|
||||
else
|
||||
dbclient="localhost"
|
||||
fi
|
||||
sed -e "s#<iname>#$name#g" -e "s#<domain>#$domain#g" -e "s#<ffmpeg>#$ffmpeg#g" -e "s#<dbuser>#$dbuser#g" -e "s#<dbname>#$dbname#g" -e "s#<dbpass>#$dbpass#g" -e "s#<dbhost>#$dbhost#g" install/template.local.toml > config/generated.toml
|
||||
sed -e "s#<iname>#$name#g" -e "s#<domain>#$domain#g" -e "s#<ffmpeg>#$ffmpeg#g" -e "s#<dbuser>#$dbuser#g" -e "s#<dbname>#$dbname#g" -e "s#<dbpass>#$dbpass#g" -e "s#<dbhost>#$dbhost#g" -e "s#<email>#$email#g" install/template.local.toml > config/generated.toml
|
||||
sed -e "s#<dbuser>#$dbuser#g" -e "s#<dbname>#$dbname#g" -e "s#<dbpass>#$dbpass#g" -e "s#<dbhost>#$dbhost#g" -e "s#<dbclient>#$dbclient#g" install/db_template.sql > install/db_setup.sql
|
||||
echo "A setup script for the database has been generated at install/db_setup.sql. Please run it by connecting to your database software and executing 'source install/db_setup.sql;''"
|
||||
echo "A default configuration file has been generated at config/generated.toml"
|
||||
|
@ -1,10 +1,10 @@
|
||||
[satyr]
|
||||
name = '<iname>'
|
||||
domain = '<domain>'
|
||||
email = '<email>'
|
||||
registration = false
|
||||
|
||||
[media]
|
||||
streamKeys = false
|
||||
record = false
|
||||
ffmpeg = '<ffmpeg>'
|
||||
|
||||
|
Reference in New Issue
Block a user