-
Notifications
You must be signed in to change notification settings - Fork 142
/
SETTINGS.env
54 lines (44 loc) · 1.51 KB
/
SETTINGS.env
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
54
################################################################################
# File: SETTINGS.sh
# Function: Set global settings through environment variables
# Created date: 30/08/2020
#################################################################################
# UNICODE LOCALE
export PYTHONIOENCODING=utf8
# WORKING FOLDER
# Important !!!
# Change this if your base folder is different from docbao_crawler
# or Docbao Crawler won't working
export DOCBAO_BASE_DIR=~/docbao
# PYTHONPATH
export PYTHONPATH=$PYTHONPATH:$DOCBAO_BASE_DIR
# WORKING OS
# Change this if you are running on Rasp OS
export DOCBAO_RUN_ON_RASPBERRY=false
# FRONTEND
export DOCBAO_FRONTEND_HOST=0.0.0.0
export DOCBAO_FRONTEND_PORT=8085
# OUTPUT RULE
export DOCBAO_EXPORT_JSON=true
export DOCBAO_EXPORT_TO_ELASTICSEARCH=false
export DOCBAO_EXPORT_TO_RABBITMQ=false
export DOCBAO_EXPORT_TO_POSTGRES=false
export DOCBAO_EXPORT_TO_WORDPRESS=false
# SETTING FOR ELASTICSEARCH
export DOCBAO_ELASTICSEARCH_HOST=0.0.0.0
# SETTING FOR RABBITMQ
export DOCBAO_RABBITMQ_HOST=127.0.0.1
export DOCBAO_RABBITMQ_USERNAME=''
export DOCBAO_RABBITMQ_PASSWORD=''
export DOCBAO_RABBITMQ_EXCHANGE=''
export DOCBAO_RABBITMQ_DEFAULT_QUEUE=''
# SETTING FOR POSTGRESQL
export DOCBAO_POSTGRES_HOST=127.0.0.1
export DOCBAO_POSTGRES_USERNAME=''
export DOCBAO_POSTGRES_PASSWORD=''
export DOCBAO_POSTGRES_DATABASE=''
export DOCBAO_POSTGRES_PORT=5432
# SETTING FOR WORDPRESS
export DOCBAO_WORDPRESS_SITE=''
export DOCBAO_WORDPRESS_USERNAME=''
export DOCBAO_WORDPRESS_PASSWORD=''