-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml-dev
More file actions
64 lines (48 loc) · 1.33 KB
/
Copy pathconfig.yml-dev
File metadata and controls
64 lines (48 loc) · 1.33 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
64
bind: "0.0.0.0:8080"
log-level: debug
log-target: console
# Database connection
db-cnn: "sqlite://./data/app.db?mode=rwc"
# db-cnn: "postgres://shortly:shortly@localhost:5432/shortly"
base-url: "http://localhost:8080"
features:
create-url:
enabled: true
auth-only: true
# Maximum URLs per user (ENV: FEATURES_CREATE_URL_MAX_PER_USER)
max-per-user: 100
# Maximum URLs per day (ENV: FEATURES_CREATE_URL_MAX_PER_DAY)
max-per-day: 10
named-urls:
enabled: true
min-length: 3
max-length: 32
# Reserved names that cannot be used
# Note: The following names are ALWAYS reserved (hardcoded in application):
# links, api, login, logout, assets, static, health, metrics, auth, admin
# You can add additional custom reserved names below:
reserved-names: []
# Examples of additional names you might want to reserve:
# - admin-panel
# - dashboard
# - settings
# - profile
auth:
enabled: true
type: gitlab
note: ""
admin-users: "admin-user1,admin-user2"
providers:
gitlab:
base-url: https://gitlab.com
application-id: CHANGE-ME
secret: CHANGE-ME
short-url:
# TTL in hours
ttl: 168 # 7 days
max-length: 2048
scheduler:
# Cleanup expired URLs every day at midnight
cleanup-expired-urls: "0 0 0 * * *"
metrics:
enabled: true