1- # Frontend configuration for during development
1+ # ===============================================
2+ # Frontend configuration
3+ # ===============================================
4+
25# Backend host, usually /api if hosted locally and used via proxy
36# If omitted and OCULAR_HYBRID_MODE is not set to true, authentication will be required to use the app
47OCULAR_GENESIS_HOST = /api
@@ -10,3 +13,59 @@ OCULAR_HYBRID_MODE=
1013# Optional, pre-filled login credentials for local testing
1114OCULAR_TEST_USERNAME = admin
1215OCULAR_TEST_PASSWORD = hgEiPCZP
16+
17+ # ===============================================
18+ # Backend configuration
19+ # ===============================================
20+
21+ # Database location
22+ GENESIS_DB_PATH = .data
23+
24+ # JWT secret known only to your token generator
25+ GENESIS_JWT_SECRET = 84d62c48dd30ca7caf6561252c5bd919
26+
27+ # JWT expiration in minutes
28+ GENESIS_JWT_TOKEN_EXPIRATION = 120000
29+
30+ # If the cookie should be allowed to be sent over http
31+ # Dangerous, it's best to run it behind a reverse proxy with https
32+ GENESIS_JWT_COOKIE_ALLOW_HTTP = true
33+
34+ # Gin mode, either test, release or debug
35+ GENESIS_GIN_MODE = test
36+
37+ # Zap logger, either production or development
38+ GENESIS_LOG_MODE = development
39+
40+ # Port to listen on
41+ GENESIS_PORT = 8080
42+
43+ # Base url to listen for requests
44+ GENESIS_BASE_URL = /
45+
46+ # Users to be created on start up.
47+ # Use ! as suffix for the username to indicate that this user should be created as an admin.
48+ # Admins can add, remove and edit users.
49+ GENESIS_CREATE_USERS = admin!:hgEiPCZP
50+
51+ # Allowed username pattern
52+ GENESIS_USERNAME_PATTERN = ^[\w]{0,32}$
53+
54+ # Allowed key pattern
55+ GENESIS_KEY_PATTERN = ^[\w]{0,32}$
56+
57+ # Maximum size of each key in kilobytes
58+ GENESIS_DATA_MAX_SIZE = 512
59+
60+ # Maximum amount of datasets per user
61+ GENESIS_KEYS_PER_USER = 3
62+
63+ # Maximum login attempts before temporary lockout for a user.
64+ # They reset after a successful login and are not persistent across restarts.
65+ # Setting it to 0 disables this feature.
66+ GENESIS_LOGIN_MAX_ATTEMPTS = 5
67+
68+ # Durations for temporary lockouts after failed login attempts, capped at the last value.
69+ # This is reset after a successful login for each individual user.
70+ # Leaving this empty disables temporary lockouts.
71+ GENESIS_LOGIN_LOCKOUT_DURATIONS = 3s,15s,1m,5m,10m,15m
0 commit comments