Skip to content

Commit

Permalink
Update mtw-dist.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
filak committed Feb 29, 2024
1 parent e621cac commit d647269
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions flask-app/dist/instance/conf/mtw-dist.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# *** Config version 1.6.1 ***
# *** Config version 1.6.5 ***
### Important values are marked with ! ###
### ! This file MUST BE UTF-8 encoded ! ###
### ! Restart the App after modifying ! ###
Expand All @@ -12,7 +12,6 @@
### ! Fully qualified domain name - required !
## - You can override it with --fqdn param when running mtw-server
#SERVER_NAME = test.medvik.cz
SERVER_NAME = 127.0.0.1

### You MUST copy the content of the static dir
### into Apache htdocs root or the equivalent
Expand Down Expand Up @@ -65,6 +64,8 @@ MARC_TREE = daw
## Default: /mtw/search/ui:
AUT_LINK = https://www.medvik.cz/link/

MESH_BROWSER = https://meshb.nlm.nih.gov/record/ui?ui=

### Data directories ###
## Defaults: relative to app directory: .../flask-app/instance/_data/... ##
#SRC_DIR = D:/Data/mesh/in
Expand All @@ -79,19 +80,15 @@ AUT_LINK = https://www.medvik.cz/link/
### Flask-Caching params
## See: https://flask-caching.readthedocs.io/en/latest/

CACHING = {"CACHE_TYPE": "FileSystemCache", "CACHE_DEFAULT_TIMEOUT": 1800, "CACHE_THRESHOLD": 1000}
CACHING = {"CACHE_DEFAULT_TIMEOUT": 1800, "CACHE_THRESHOLD": 1000}

### Flask-Session params
## See: https://flasksession.readthedocs.io/en/latest/

SESSIONS = {
"SESSION_COOKIE_NAME": "mtwsession", "SESSION_KEY_PREFIX": "MTWS",
"SESSION_COOKIE_SAMESITE": "Lax"
"SESSION_COOKIE_NAME": "mtwsession", "SESSION_KEY_PREFIX": "MTWS"
}

## "SESSION_PERMANENT": true,
## "PERMANENT_SESSION_LIFETIME": 1s * 60 * 10 = 600 - 10 min

GCSP = {"script-src": "'self' ",
"connect-src": "'self' *.medvik.cz *.nlk.cz",
"style-src": "'self' fonts.googleapis.com *.gstatic.com data: 'unsafe-inline'",
Expand All @@ -102,11 +99,12 @@ GCSP = {"script-src": "'self' ",

CHAR_NORM_FILE = norm_chars_table.tsv.txt

### MTW Worker API settings - required !
[worker]

[worker]
### MTW Worker API settings - required !
WORKER_HOST = http://127.0.0.1:55933/

API_SCOPE = mtw_api_worker
API_STATUS = private
API_TIMEOUT = 10
API_TOKEN_MAX_AGE = 10
Expand Down

0 comments on commit d647269

Please sign in to comment.