1> Google OAuth
* 사용자 인증 정보에서 웹 애플리케이션의 클라이언트 생성
- 승인된 리디렉션 URI를 '{도메인}/oauth/google_callback’ 로 추가
2> Redash 의 Settings - General 설정
- Password Login 체크 해제
- Google Login 허용 도메인 등록 ( 이메일 도메인으로 지정하여 도메인을 검수 )
3> Redash 의 env 파일 수정
REDASH_GOOGLE_CLIENT_ID, REDASH_GOOGLE_CLIENT_SECRET 추가
https://redash.io/help/open-source/setup#docker
https://github.com/getredash/setup/tree/master/data
https://open-but-closed.com/remake-redash-docker-images/
* docker-compose.yml
version: "2"
x-redash-service: &redash-service
image: redash/redash:8.0.0.b32245
depends_on:
- postgres
- redis
env_file: /Users/a202001035/Store/Workspace/dp/redash/env
restart: always
services:
server:
<<: *redash-service
command: server
ports:
- "5000:5000"
environment:
REDASH_WEB_WORKERS: 4
scheduler:
<<: *redash-service
command: scheduler
environment:
QUEUES: "celery"
WORKERS_COUNT: 1
scheduled_worker:
<<: *redash-service
command: worker
environment:
QUEUES: "scheduled_queries,schemas"
WORKERS_COUNT: 1
adhoc_worker:
<<: *redash-service
command: worker
environment:
QUEUES: "queries"
WORKERS_COUNT: 2
redis:
image: redis:5.0-alpine
restart: always
postgres:
image: postgres:9.6-alpine
env_file: /Users/a202001035/Store/Workspace/dp/redash/env
volumes:
- /Users/a202001035/Store/Workspace/dp/redash/postgres-data:/var/lib/postgresql/data
restart: always
nginx:
image: redash/nginx:latest
ports:
- "80:80"
depends_on:
- server
links:
- server:redash
restart: always
* env
PYTHONUNBUFFERED=0
REDASH_LOG_LEVEL=INFO
REDASH_REDIS_URL=redis://redis:6379/0
POSTGRES_PASSWORD=HMw81S
REDASH_COOKIE_SECRET=sCJK
REDASH_SECRET_KEY=aa0xO
REDASH_DATABASE_URL=postgresql://postgres:HMKJWk@postgres/postgres
https://redash.io/help/user-guide/querying/query-filters
https://redash.io/help/open-source/admin-guide/ldap-authentication
https://pypi.org/project/redash-iodide/
https://redash.io/help/data-sources/setup/json
https://redash.io/help/open-source/dev-guide/debugging
* AWS ECS
https://github.com/ikazoy/redash-on-ecs
https://www.ehfeng.com/redash-python-functions/