availcheck

 1import os
 2
 3from dotenv import load_dotenv
 4
 5# load .env file
 6load_dotenv()
 7
 8O4A_URL = {
 9    "prod": os.getenv(
10        "O4A_PROD_URL",
11        default="https://onestop4all.nfdi4earth.de",
12    ),
13    "test": os.getenv(
14        "O4A_TEST_URL",
15        default="https://onestop4all.test.n4e.geo.tu-dresden.de",
16    ),
17}
18
19O4A_SOLR_SUBPATH = os.getenv("O4A_SOLR_SUBPATH", default="solr/#/login")
20O4A_ENTITIES_COUNT = int(os.getenv("O4A_ENTITIES_COUNT", default=8))
21
22BROWSER_DIR = os.getenv("BROWSER_DIR", default=None)
23
24EDU_URL = {
25    "test": os.getenv(
26        "EDU_TEST_URL", default="https://edutrain.test.n4e.geo.tu-dresden.de"
27    ),
28    "prod": os.getenv(
29        "EDU_PROD_URL", default="https://edutrain.nfdi4earth.de"
30    ),
31}
32
33
34SUPPORT_APPS_URL = {
35    "prod": os.getenv(
36        "SUPPORT_APPS_URL",
37        default="https://support-apps.n4e.geo.tu-dresden.de/",
38    )
39}
40
41KNOWLEDGEHUB_URL = {
42    "prod": os.getenv(
43        "KNOWLEDGEHUB_PROD_URL", default="https://knowledgehub.nfdi4earth.de/"
44    ),
45    "test": os.getenv(
46        "KNOWLEDGEHUB_TEST_URL",
47        default="https://knowledgehub.test.n4e.geo.tu-dresden.de/",
48    ),
49}
50
51WEBAPPS_URL = {
52    "prod": os.getenv(
53        "WEBAPPS_PROD_URL", default="https://webapps.nfdi4earth.de/"
54    )
55}
O4A_URL = {'prod': 'https://onestop4all.nfdi4earth.de', 'test': 'https://onestop4all.test.n4e.geo.tu-dresden.de'}
O4A_SOLR_SUBPATH = 'solr/#/login'
O4A_ENTITIES_COUNT = 8
BROWSER_DIR = None
EDU_URL = {'test': 'https://edutrain.test.n4e.geo.tu-dresden.de', 'prod': 'https://edutrain.nfdi4earth.de'}
SUPPORT_APPS_URL = {'prod': 'https://support-apps.n4e.geo.tu-dresden.de/'}
KNOWLEDGEHUB_URL = {'prod': 'https://knowledgehub.nfdi4earth.de/', 'test': 'https://knowledgehub.test.n4e.geo.tu-dresden.de/'}
WEBAPPS_URL = {'prod': 'https://webapps.nfdi4earth.de/'}