mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-30 09:18:28 +00:00
parent
5cb57fb176
commit
629b0a8b41
@ -4,7 +4,7 @@ channel_threads: 1
|
|||||||
feed_threads: 1
|
feed_threads: 1
|
||||||
db:
|
db:
|
||||||
user: kemal
|
user: kemal
|
||||||
password: kemal
|
password: replacethispassword
|
||||||
host: localhost
|
host: localhost
|
||||||
port: 5432
|
port: 5432
|
||||||
dbname: invidious
|
dbname: invidious
|
||||||
|
7
setup.sh
7
setup.sh
@ -1,10 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
dbpass=$(openssl rand -hex 20)
|
||||||
|
|
||||||
createdb invidious
|
createdb invidious
|
||||||
#createuser kemal
|
#createuser kemal
|
||||||
psql -c "CREATE USER kemal WITH PASSWORD 'kemal';"
|
psql -c "CREATE USER kemal WITH PASSWORD '$dbpass';"
|
||||||
psql invidious < config/sql/channels.sql
|
psql invidious < config/sql/channels.sql
|
||||||
psql invidious < config/sql/videos.sql
|
psql invidious < config/sql/videos.sql
|
||||||
psql invidious < config/sql/channel_videos.sql
|
psql invidious < config/sql/channel_videos.sql
|
||||||
psql invidious < config/sql/users.sql
|
psql invidious < config/sql/users.sql
|
||||||
psql invidious < config/sql/nonces.sql
|
psql invidious < config/sql/nonces.sql
|
||||||
|
|
||||||
|
# change password in config file
|
||||||
|
sed -i "s/replacethispassword/$dbpass/g" config/config.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user