mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
83 lines
2.7 KiB
INI
83 lines
2.7 KiB
INI
;; Configuration file for Internet-in-a-Box
|
|
;;
|
|
;; You should NOT edit this file if you are only
|
|
;; making changes for your local machine.
|
|
;;
|
|
;; Instead create a local.ini file which will automatically
|
|
;; be loaded AFTER this file loads, and can be used to
|
|
;; override any settings in this file. Do NOT check your local.ini
|
|
;; into the repository, it is for your personal use only.
|
|
;;
|
|
;; Variable "interpolation" can be used to incorporate
|
|
;; values from previous assignments within a setting value.
|
|
;;
|
|
;; For example,
|
|
;; b = BAAAH
|
|
;; a = a%(b)sc
|
|
;;
|
|
;; will result in the value of 'a' being 'aBAAHc'. Note the 's'
|
|
;; following the parenthesis is NECESSARY (to denote a string?)
|
|
;;
|
|
;; [DEFAULT] is a special section. Any settings there
|
|
;; will automatically appear in all other sections. [DEFAULT]
|
|
; Location of our dataset
|
|
[DEFAULT]
|
|
knowledge_dir = /library/knowledge
|
|
processed_dir = %(knowledge_dir)s/processed
|
|
modules_dir = %(knowledge_dir)s/modules
|
|
data_dir = %(knowledge_dir)s/data
|
|
|
|
; If search_for_knowledge_dir is true, then
|
|
; the system will search all mounted volumes
|
|
; for a "knowledge/" directory if the path
|
|
; specified in knowledge_dir does not exist.
|
|
search_for_knowledge_dir = False
|
|
|
|
; Machine architecture. This is set by the
|
|
; application at run-time.
|
|
arch = unset
|
|
bin_dir = %(knowledge_dir)s/sys/bin-%(arch)s
|
|
|
|
[WEBAPP]
|
|
port = 25000
|
|
interface = 0.0.0.0
|
|
base_prefix = /iiab/
|
|
use_x_sendfile = False
|
|
|
|
[ZIM]
|
|
url = /iiab/zim
|
|
wikipedia_zim_dir = %(modules_dir)s/wikipedia-zim
|
|
wikipedia_index_dir = %(modules_dir)s/wikipedia-index
|
|
kiwix_library_file = %(wikipedia_zim_dir)s/library.xml
|
|
old_kiwix_library_file = %(modules_dir)s/wikipedia-kiwix/library.xml
|
|
|
|
[GUTENBERG]
|
|
gutenberg_dir = %(modules_dir)s/gutenberg
|
|
gutenberg_mirror = %(modules_dir)s/gutenberg-mirror
|
|
htmlz_dir = %(modules_dir)s/gutenberg-htmlz
|
|
htmlz_images_dir = %(modules_dir)s/gutenberg-htmlz-images
|
|
epub_dir = %(modules_dir)s/gutenberg-epub
|
|
epub_images_dir = %(modules_dir)s/gutenberg-epub-images
|
|
sqlalchemy_echo = True
|
|
sqlalchemy_database_uri = %(gutenberg_dir)s/gutenberg.db
|
|
index_dir = %(gutenberg_dir)s/whoosh/gutenberg_index
|
|
root_dir = %(gutenberg_mirror)s/
|
|
|
|
[VIDEO]
|
|
khanacademy_dir = %(modules_dir)s/khanacademy
|
|
khan_webm_dir = %(khanacademy_dir)s/webm
|
|
khan_h264_dir = %(khanacademy_dir)s/h264
|
|
khan_cache_file = /tmp/khan_cache.json
|
|
; Where we make easy 0/1/2/3 sym links for all videos
|
|
; so they can be served directly by the front end web server
|
|
symlink_dir = %(khanacademy_dir)s/khanlinks
|
|
; This is static content, so it can change based on web server config
|
|
video_url = /iiab/video/khanvideo
|
|
|
|
[OSM]
|
|
openstreetmap_dir = %(modules_dir)s/openstreetmap
|
|
osm_search_dir = %(modules_dir)s/geonames_index
|
|
|
|
[SOFTWARE]
|
|
software_dir = %(modules_dir)s/ubuntu/12.04/mirror/archive.ubuntu.com/ubuntu
|
|
software_url = /iiab/software
|