gargantext-settings.toml_toModify 3.43 KB
Newer Older
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
[frontend]

# Main url serving the FrontEnd
url = "http://localhost"

backend_name = "localhost"

# Main API url serving the BackEnd
url_backend_api = "http://localhost:8008/api/v1.0"

jwt_settings = "TODO"

[frontend.cors]

allowed-origins = [
    "https://demo.gargantext.org"
  , "https://formation.gargantext.org"
  , "https://academia.sub.gargantext.org"
  , "https://cnrs.gargantext.org"
  , "https://imt.sub.gargantext.org"
  , "https://helloword.gargantext.org"
  , "https://complexsystems.gargantext.org"
  , "https://europa.gargantext.org"
  , "https://earth.sub.gargantext.org"
  , "https://health.sub.gargantext.org"
  , "https://msh.sub.gargantext.org"
  , "https://dev.sub.gargantext.org"
  , "http://localhost:8008"
  , "http://localhost:8108"
  , "http://localhost:3000"
  ]

use-origins-for-hosts = true

[frontend.microservices.proxy]
port    = 8009
enabled = false


[secrets]

# Needed to instantiate the first users and first data
master_user = "gargantua"

# SECURITY WARNING: keep the secret key used in production secret!
# SECRET_KEY is the seed, from which hashes for passwords and hackmd
# frame_id seeds are computed.
secret_key      = "something_speciaL"

50 51 52
# JWK token
jwk_file = "dev.jwk"

53 54 55 56 57 58 59 60 61 62 63 64

[paths]

# Data path to local files
data_filepath = FILEPATH_TO_CHANGE


[apis]

[apis.epo]
api_url = EPO_API_URL

65 66 67
[apis.scrapyd]
url = "http://localhost:6800"

68 69 70 71 72

[external]

[external.frames]
# FRAMES (i.e. iframe sources used in various places on the frontend)
73
#write_url = "http://write.frame.gargantext.org"
74
write_url = URL_TO_CHANGE
75
#calc_url = "http://calc.frame.gargantext.org"
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
calc_url  = URL_TO_CHANGE

visio_url  = URL_TO_CHANGE

searx_url  = URL_TO_CHANGE
istex_url  = URL_TO_CHANGE


[jobs]
#MAX_DOCS_PARSERS = 100
max_docs_parsers = 4000
max_docs_scrapers = 4000

# in seconds
js_job_timeout = 6000
js_id_timeout = 6000


[database]
# PostgreSQL access
host = "127.0.0.1"
port = 5432
name = "gargandbV5"
user = "gargantua"
pass = PASSWORD_TO_CHANGE


[logs]
log_file = "/var/log/gargantext/backend.log"
log_level = "LevelDebug"
log_formatter = "verbose"


[mail]
#port = 25
#host = localhost
#user = gargantext
#password =
#from =
# NoAuth | Normal | SSL | TLS | STARTTLS
#login_type = NoAuth

# Emails From address (sent by smtp)
mail_from = "username@gargantext.org"
smtp_host = "localhost"
# if remote smtp host
# HOST_USER     = user
# HOST_password = password


126 127 128 129 130
[notifications]
central-exchange = { bind = "tcp://*:5560", connect = "tcp://localhost:5560" }
dispatcher = { bind = "tcp://*:5561", connect = "tcp://localhost:5561" }


131 132 133 134 135 136 137 138 139 140
[nlp]
# Possible choices (see Gargantext.Core.NLP):
# - spacy:// (for http:// Spacy)
# - spacys:// (for https:// Spacy)
# - corenlp:// (for http:// CoreNLP)
# - corenlps:// (for https:// CoreNLP)
# - johnsnow:// (for http:// JohnSnow)
# - johnsnows:// (for https:// JohnSnow)
EN = "spacy://localhost:8000"
FR = "spacy://localhost:8001"
141 142 143 144 145 146 147 148

[worker]

# After this number of seconds, the job will be available again.
# You can set timeout for each job individually and this is the
# preferred method over using defaultVt.
default_visibility_timeout = 1

149 150 151
# default delay before job is visible to the worker
default_delay = 0

152 153 154
# if you leave the same credentials as in [database] section above,
#  workers will try to set up the `gargantext_pgmq` database
#  automatically
155 156 157
[worker.database]
host = "127.0.0.1"
port = 5432
158
name = "gargantext_pgmq"
159
user = "gargantua"
160
pass = PASSWORD_TO_CHANGE
161 162 163 164 165

[[worker.definitions]]
name = "default"
queue = "default"