mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2026-11-20 21:19:05 +00:00
Big Refactor
Stop using config and toml as dependencies Stop passing around config variables through function calls Add config.ts and pull the values you need directly in the files Remove irc.js for incoming new IRC solution Rename controller to index because that was stupid Minor git bullshit with the config folder Change to yaml as a config format
This commit is contained in:
1 parent
681802dbaf
commit
f7733b9507
17 files changed
+208
-438
No files matched your search
@@ -0,0 +1,24 @@
|
||||
satyr:
|
||||
name: '<iname>'
|
||||
domain: '<domain>'
|
||||
email: '<email>'
|
||||
registration: false
|
||||
|
||||
media:
|
||||
record: false
|
||||
ffmpeg: '<ffmpeg>'
|
||||
|
||||
http:
|
||||
# uncomment to set HSTS when SSL is ready
|
||||
#hsts: true
|
||||
|
||||
database:
|
||||
user: '<dbuser>'
|
||||
password: '<dbpass>'
|
||||
database: '<dbname>'
|
||||
host: '<dbhost>'
|
||||
|
||||
transcode:
|
||||
adaptive: false
|
||||
format: dash
|
||||
variants: 3
|
||||
+3
-3
@@ -38,8 +38,8 @@ 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" -e "s#<email>#$email#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/config.example.yml > config/generated.yml
|
||||
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"
|
||||
echo "If everything looks fine, move it to config/local.toml and start your instance."
|
||||
echo "A default configuration file has been generated at config/generated.yml"
|
||||
echo "If everything looks fine, move it to config/config.yml and start your instance."
|
||||
@@ -1,19 +0,0 @@
|
||||
[satyr]
|
||||
name = '<iname>'
|
||||
domain = '<domain>'
|
||||
email = '<email>'
|
||||
registration = false
|
||||
|
||||
[media]
|
||||
record = false
|
||||
ffmpeg = '<ffmpeg>'
|
||||
|
||||
[server.http]
|
||||
# uncomment to set HSTS when SSL is enabled
|
||||
# hsts = true
|
||||
|
||||
[database]
|
||||
user = '<dbuser>'
|
||||
password = '<dbpass>'
|
||||
database = '<dbname>'
|
||||
host = '<dbhost>'
|
||||
Reference in new issue
Block a user