2019-04-20 18:34:53 +00:00
|
|
|
[global]
|
|
|
|
# CherryPyApp.conf
|
|
|
|
# These parameters get over-written by values in ~/.autocat3 or /etc/autocat3.conf
|
|
|
|
# any sensetive parameters such as keys should be stored there
|
|
|
|
environment: 'production'
|
|
|
|
|
|
|
|
pidfile: '/var/run/autocat/autocat3.pid'
|
|
|
|
|
|
|
|
server.socket_host: '::'
|
|
|
|
server.socket_port: 8000
|
|
|
|
server.socket_queue_size: 10
|
|
|
|
server.thread_pool: 20
|
|
|
|
server.thread_pool_max: 20
|
|
|
|
|
2019-04-24 17:35:56 +00:00
|
|
|
# change host and postgres params in .autocat3 or /etc/autocat3.conf files
|
2019-04-20 18:34:53 +00:00
|
|
|
pghost: 'localhost'
|
|
|
|
pgport: 5432
|
|
|
|
pgdatabase: 'gutenberg'
|
|
|
|
pguser: 'postgres'
|
|
|
|
|
|
|
|
host: 'www.gutenberg.org'
|
|
|
|
host_mobile: 'm.gutenberg.org'
|
2019-04-24 17:35:56 +00:00
|
|
|
host_https: 1
|
2019-04-20 18:34:53 +00:00
|
|
|
file_host: 'www.gutenberg.org'
|
|
|
|
|
2019-04-24 17:38:14 +00:00
|
|
|
|
2019-04-20 18:34:53 +00:00
|
|
|
sqlalchemy.pool_size: 20
|
|
|
|
sqlalchemy.max_overflow: 0
|
|
|
|
sqlalchemy.timeout: 3
|
|
|
|
|
|
|
|
facebook_app_id: '115319388529183'
|
|
|
|
|
|
|
|
dropbox_client_id: '6s833cia5ndi4b5'
|
|
|
|
dropbox_client_secret: 'add secret in .autocat3 or /etc/autocat3.conf files'
|
|
|
|
|
2019-04-25 17:58:01 +00:00
|
|
|
gdrive_client_id: '586299000268-k8dhqmutufgdr8p9dh2a8tnh6lks6bji.apps.googleusercontent.com'
|
2019-04-20 18:34:53 +00:00
|
|
|
gdrive_client_secret: 'add secret in .autocat3 or /etc/autocat3.conf files'
|
|
|
|
|
2019-04-24 17:38:14 +00:00
|
|
|
msdrive_client_id: '6902b111-a9d6-461f-bd8a-83dafee3da66'
|
2019-04-20 18:34:53 +00:00
|
|
|
msdrive_client_secret: 'add secret in .autocat3 or /etc/autocat3.conf files'
|
|
|
|
|
|
|
|
log.screen: False
|
2019-04-30 19:36:46 +00:00
|
|
|
log.error_file: ''
|
|
|
|
log.access_file: ''
|
|
|
|
|
|
|
|
logger.error_file: '/var/lib/autocat/log/error.log'
|
|
|
|
logger.access_file: '/var/lib/autocat/log/access.log'
|
2019-04-20 18:34:53 +00:00
|
|
|
log.rot_max_bytes: 104857600
|
|
|
|
log.rot_backup_count: 2
|
|
|
|
tools.log_headers.on: False
|
|
|
|
tools.log_tracebacks.on: True
|
|
|
|
|
|
|
|
document_root: 'https://www.gutenberg.org'
|
|
|
|
|
|
|
|
[/]
|
|
|
|
tools.proxy.on: True
|
|
|
|
tools.proxy.local: 'X-Forwarded-Host'
|
|
|
|
|
|
|
|
|
|
|
|
tools.encode.on: True
|
|
|
|
tools.encode.encoding: 'utf-8'
|
|
|
|
|
|
|
|
tools.gzip.on: True
|
|
|
|
tools.gzip.mime_types: ['text/html', 'application/xhtml+xml', 'application/atom+xml']
|
|
|
|
|
|
|
|
tools.I18nTool.on: True
|
2020-03-09 18:28:41 +00:00
|
|
|
tools.I18nTool.default: 'en'
|
2019-04-20 18:34:53 +00:00
|
|
|
tools.I18nTool.mo_dir: CherryPyApp.install_dir + '/i18n'
|
|
|
|
tools.I18nTool.domain: 'messages'
|
|
|
|
|
|
|
|
tools.sessions.on: True
|
2019-08-15 17:03:51 +00:00
|
|
|
tools.sessions.storage_class = sessions.RamSession
|
2019-04-20 18:34:53 +00:00
|
|
|
#tools.sessions.storage_type = "postgres"
|
|
|
|
tools.sessions.table_name = "cherrypy.sessions"
|
|
|
|
tools.sessions.timeout: 30
|
|
|
|
tools.sessions.path: '/'
|
2019-04-24 18:04:48 +00:00
|
|
|
tools.sessions.domain: '.gutenberg.org'
|
2019-04-24 17:35:56 +00:00
|
|
|
#tools.sessions.domain: 'localhost'
|
2019-04-20 18:34:53 +00:00
|
|
|
|
|
|
|
tools.expires.on: True
|
|
|
|
tools.expires.secs: 0
|
|
|
|
tools.expires.force: True
|
|
|
|
|
2019-04-22 22:07:39 +00:00
|
|
|
[/index.html]
|
2019-04-20 18:34:53 +00:00
|
|
|
tools.staticfile.on: True
|
2019-04-24 17:35:56 +00:00
|
|
|
tools.staticfile.filename: CherryPyApp.install_dir + '/test/index.html'
|
|
|
|
|
|
|
|
[/test.pdf]
|
|
|
|
tools.staticfile.on: True
|
|
|
|
tools.staticfile.filename: CherryPyApp.install_dir + '/test/test.pdf'
|