Install
This commit is contained in:
1
.key.env.sample
Normal file
1
.key.env.sample
Normal file
@ -0,0 +1 @@
|
|||||||
|
API_KEY=
|
1
app/.adminer.env.sample
Normal file
1
app/.adminer.env.sample
Normal file
@ -0,0 +1 @@
|
|||||||
|
ADMINER_DESIGN=dracula
|
4
app/.db.env.sample
Normal file
4
app/.db.env.sample
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
MYSQL_ROOT_PASSWORD=
|
||||||
|
MYSQL_DATABASE=
|
||||||
|
MYSQL_USER=
|
||||||
|
MYSQL_PASSWORD=
|
11
app/.env.sample
Normal file
11
app/.env.sample
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
APP_URL=
|
||||||
|
|
||||||
|
MYSQL_HOST=db
|
||||||
|
|
||||||
|
COOKIE_NAME=
|
||||||
|
COOKIE_DOMAIN=
|
||||||
|
COOKIE_PATH=/
|
||||||
|
MAX_LOGIN_HOURS=120
|
||||||
|
|
||||||
|
REDIS_HOST=redis
|
||||||
|
REDIS_PORT=6379
|
0
app/.redis.env.sample
Normal file
0
app/.redis.env.sample
Normal file
2
cli/.env.sample
Normal file
2
cli/.env.sample
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
APP_NAME=incoviba_cli
|
||||||
|
API_URL=http://proxy/api
|
17
install.sh
Normal file
17
install.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#docker run --rm -it -v ${PWD}/app:/app composer install
|
||||||
|
#docker run --rm -it -v ${PWD}/cli:/app composer install
|
||||||
|
|
||||||
|
find ./app -name "*.env.sample" | cat -n | while read n f; do
|
||||||
|
echo ./app/"$n"
|
||||||
|
#cp "$f" ./app/"$n"
|
||||||
|
done
|
||||||
|
|
||||||
|
#cp ./cli/.env.sample ./cli/.env
|
||||||
|
|
||||||
|
#cp ./.env.sample ./.env
|
||||||
|
|
||||||
|
#echo "API_KEY=$(docker run --rm -it nginx openssl rand -hex 64)" > ./.key.env
|
||||||
|
#printf "MYSQL_ROOT_PASSWORD=%s\nMYSQL_DATABASE=incoviba\nMYSQL_USER=incoviba\nMYSQL_PASSWORD=%s" "$(docker run --rm -it nginx openssl rand -hex 16)" "$(docker run --rm -it nginx openssl rand -hex 64)" > ./app/.db.env
|
||||||
|
|
Reference in New Issue
Block a user