b992080c95
- Add config table for storing FlareSolverr proxy setting
- Add HTTP endpoints to get/set proxy status (GET/POST /api/config/flaresolverr)
- Refactor httpclient to support proxy mode (requests go through FlareSolverr)
- Add verbose logging for debugging
- Add POST support to FlareSolverr client
Usage:
GET /api/config/flaresolverr - returns {flaresolverr_proxy: bool}
POST /api/config/flaresolverr - body: {enabled: true/false}
29 lines
695 B
Makefile
Executable File
29 lines
695 B
Makefile
Executable File
DEV_COMPOSE = docker compose -f compose-dev.yml
|
|
DEV_GO = /usr/local/go/bin/go
|
|
|
|
.PHONY: dev-up dev-shell dev-down dev-logs dev-build dev-run smoke-keyoapp-plain smoke-keyoapp-plain-dev
|
|
|
|
dev-build:
|
|
$(DEV_COMPOSE) build dev
|
|
|
|
dev-up:
|
|
$(DEV_COMPOSE) up -d
|
|
|
|
dev-run:
|
|
$(DEV_COMPOSE) up dev
|
|
|
|
dev-shell:
|
|
$(DEV_COMPOSE) exec dev sh
|
|
|
|
dev-down:
|
|
$(DEV_COMPOSE) down
|
|
|
|
dev-logs:
|
|
$(DEV_COMPOSE) logs -f --tail=100
|
|
|
|
smoke-keyoapp-plain:
|
|
GOYOMI_SMOKE=1 go test -count=1 -v ./sources -run TestStandaloneKeyoappSmoke
|
|
|
|
smoke-keyoapp-plain-dev:
|
|
$(DEV_COMPOSE) up -d postgres flaresolverr dev
|
|
$(DEV_COMPOSE) exec dev sh -lc "GOYOMI_SMOKE=1 $(DEV_GO) test -count=1 -v ./sources -run TestStandaloneKeyoappSmoke"
|