forked from Nextdoor/ndscheduler
-
Notifications
You must be signed in to change notification settings - Fork 6
/
config_example.yaml
53 lines (48 loc) · 2.07 KB
/
config_example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# DEBUG: False # or True
# STATIC_DIR_PATH: # non-default folder for the static HTML files
# TEMPLATE_DIR_PATH: # non-default folder for the Tornado template files
# APP_INDEX_PAGE: # non-default index file
# WEBSITE_TITLE: Scheduler
HTTP_PORT: 7777
HTTP_ADDRESS: 127.0.0.1 # IP address or host name, 0.0.0.0 for all interfaces
SSL_CERT: /path/to/cert # required for HTTPS
SSL_KEY: /path/to/key # required for HTTPS
# TORNADO_MAX_WORKERS: 8
# THREAD_POOL_SIZE: 8
# JOB_MAX_INSTANCES: 3
# JOB_COALESCE: True
# TIMEZONE: UTC
# JOB_MISFIRE_GRACE_SEC: 3600
# Database settings
# DATABASE_TABLENAMES:
# "jobs_tablename": confuse.String(default="scheduler_jobs"),
# "executions_tablename": confuse.String(default="scheduler_execution"),
# "auditlogs_tablename": confuse.String(default="scheduler_jobauditlog"),
# DATABASE_CLASS: sqlite # supported: sqlite, postgres, mysql
DATABASE_CONFIG_DICT:
"file_path": datastore.db # SQlite
# additional attributes for MySQL and Postgres
# "user": confuse.String(default="username"),
# "password": confuse.String(default=""),
# "hostname": confuse.String(default="localhost"),
# "port": confuse.Integer(default=3306), # MySQL default
# "database": confuse.String(default="scheduler"),
# "sslmode": confuse.String(default="disable"),
# ndscheduler is based on apscheduler. Here we can customize the apscheduler's main scheduler class
# Please see ndscheduler/core/scheduler/base.py
# SCHEDULER_CLASS: ndscheduler.corescheduler.core.base.BaseScheduler
# LOGGING_LEVEL: INFO
# Packages that contains job classes, e.g., simple_scheduler.jobs
JOB_CLASS_PACKAGES:
- webcron.jobs
# Secure Cookie Hash
SECURE_COOKIE: __TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__
# Name of the secure cookie
COOKIE_NAME: user
# Secure cookie age in days (decimals are supported)
COOKIE_MAX_AGE: 1
# Authentication
# If needs authentication, modify the dict below e.g. AUTH_CREDENTIALS = {'username': 'password'}
# The password must be hashed using bcrypt
AUTH_CREDENTIALS:
user: $2y$11$MCw3cm9Tp.8zF/hmPILW3.1hGMtP0UV8kUevfaxrzM7JzXdoyFi6. # Very$ecret