-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv_file.example
More file actions
64 lines (50 loc) · 2.37 KB
/
env_file.example
File metadata and controls
64 lines (50 loc) · 2.37 KB
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
55
56
57
58
59
60
61
62
63
SECRET_KEY="CHANGE THIS TO ANY BIG RANDOM STRING!!!!"
DEBUG=True
SITE_NAME="Default Archetype"
# Database
# change the username and password for improved security
DATABASE_URL="postgresql://postgres:password@postgres:5432/local"
# IIIF image server (Sipi). Thumbnails in search use this; the browser must be able to load it.
# - With nginx on port 80 proxying /sipi: use http://localhost/sipi (or https://YourDomain/sipi in prod)
# - Without nginx (e.g. dev with frontend on 3401): use http://localhost:1024/ to hit Sipi directly.
# After changing IIIF_HOST, run: make -C infrastructure update_index
IIIF_HOST=http://localhost/sipi
# Hosts for the nginx server -- Replace with your domain for API and website
DOMAIN=localhost
# CORS and Hosts
# Allowed hosts contains the domains that are allowed to host your server. Don't preprend with http/https.
ALLOWED_HOSTS=localhost
# CORS origins are the http/https + domain names that will run your frontend.
CORS_ALLOWED_ORIGINS=http://localhost
# CSRF origins are your django admin http/https + domains for your frontend and backend.
CSRF_TRUSTED_ORIGINS=http://localhost
## FTP server is used to upload images to the server
FTP_USER=archetype_user
FTP_PASS=password
PASV_ADDRESS=localhost # Change this to your custom domain
PASV_MIN_PORT=21100
PASV_MAX_PORT=21110
# ----------------------------------------------------------------------
# Application configuration
ENABLE_PUBLICATIONS_APP=true
APP_NAME_MANUSCRIPTS=Manuscripts
# Model names
MODEL_DISPLAY_NAME_HISTORICAL_ITEM="Historical Item"
MODEL_DISPLAY_NAME_CATALOGUE_NUMBER="Catalogue Number"
MODEL_DISPLAY_NAME_POSITION="Position"
MODEL_DISPLAY_NAME_DATE="Date"
# Field names
FIELD_DISPLAY_NAME_HISTORICAL_ITEM_HAIR_TYPE="Hair Type"
FIELD_DISPLAY_NAME_CURRENT_ITEM_SHELFMARK=str, "Shelfmark"
FIELD_DISPLAY_NAME_DATE_MIN="Minimum weight"
FIELD_DISPLAY_NAME_DATE_MAX="Maximum weight"
FIELD_DISPLAY_LOCUS="Locus"
ITEM_IMAGE_DEFAULT_MODEL="manuscripts.HistoricalItem"
# ADMIN_HIDDEN_FIELDS={"manuscripts.HistoricalItem": []}
# Choices
HISTORICAL_ITEM_TYPES="Agreement,Charter,Letter"
HISTORICAL_ITEM_HAIR_TYPES="FHFH,FHHF,HFFH,HFHF,Mixed"
REPOSITORY_TYPES="Library,Institution,Person,Online Resource"
CHARACTER_ITEM_TYPES="Majuscule Letter,Minuscule Letter,Numeral,Punctuation,Symbol,Accent"
# --------------------------- FRONTEND CONFIGURATION ---------------------------
NEXT_PUBLIC_API_URL=http://localhost