chore: update dev env config
- Add FLARESOLVERR_LOG_LEVEL and FLARESOLVERR_PROXY to .env.example - Change default port to 3300 in dev.env - Make compose-dev.yml use ADDR env var for host port - Enable FLARESOLVERR_PROXY by default in dev.env for testing
This commit is contained in:
+3
-1
@@ -6,7 +6,9 @@ POSTGRES_PASSWORD=goyomi
|
||||
# App
|
||||
DATABASE_URL=postgres://goyomi:goyomi@postgres:5432/goyomi?sslmode=disable
|
||||
FLARESOLVERR_URL=http://flaresolverr:8191
|
||||
ADDR=:8080
|
||||
FLARESOLVERR_LOG_LEVEL=info
|
||||
FLARESOLVERR_PROXY=0
|
||||
ADDR=:3300
|
||||
|
||||
# Connection pool
|
||||
DB_MAX_CONNS=10
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ services:
|
||||
- go_mod_cache:/go/pkg/mod
|
||||
- go_build_cache:/root/.cache/go-build
|
||||
ports:
|
||||
- "3300:8080"
|
||||
- "${ADDR:-8080}:8080"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
@@ -3,12 +3,14 @@ POSTGRES_DB=goyomi
|
||||
POSTGRES_USER=goyomi
|
||||
POSTGRES_PASSWORD=goyomi
|
||||
|
||||
# App runtime
|
||||
# App
|
||||
DATABASE_URL=postgres://goyomi:goyomi@postgres:5432/goyomi?sslmode=disable
|
||||
FLARESOLVERR_URL=http://flaresolverr:8191
|
||||
ADDR=:8080
|
||||
FLARESOLVERR_LOG_LEVEL=info
|
||||
FLARESOLVERR_PROXY=1
|
||||
ADDR=:3300
|
||||
|
||||
# DB pool
|
||||
# Connection pool
|
||||
DB_MAX_CONNS=10
|
||||
DB_MIN_CONNS=2
|
||||
|
||||
@@ -16,7 +18,3 @@ DB_MIN_CONNS=2
|
||||
MANGA_LIST_TTL_SECONDS=600
|
||||
MANGA_DETAIL_TTL_SECONDS=3600
|
||||
CHAPTER_LIST_TTL_SECONDS=600
|
||||
|
||||
# FlareSolverr
|
||||
FLARESOLVERR_LOG_LEVEL=info
|
||||
FLARESOLVERR_PROXY=0
|
||||
|
||||
Reference in New Issue
Block a user