Skip to content

Commit 9f82a0d

Browse files
committed
add hanko-config.yaml.example for local development setup
1 parent b87369b commit 9f82a0d

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

hanko-config.yaml.example

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
server:
2+
public:
3+
address: ":8000"
4+
cors:
5+
allow_origins:
6+
- "https://portal.hotosm.test"
7+
- "https://login.hotosm.test"
8+
- "https://dronetm.hotosm.test"
9+
allow_credentials: true
10+
unsafe_wildcard_origin_allowed: true
11+
12+
database:
13+
database: hanko
14+
user: hanko
15+
password: hanko
16+
host: hanko-db
17+
port: 5432
18+
19+
secrets:
20+
keys:
21+
- "abcdefghijklmnopqrstuvwxyz123456" # Change this for production
22+
23+
service:
24+
name: "HOTOSM Portal (Dev)"
25+
26+
webauthn:
27+
relying_party:
28+
id: "hotosm.test"
29+
display_name: "HOTOSM Portal"
30+
origins:
31+
- "https://portal.hotosm.test"
32+
- "https://login.hotosm.test"
33+
- "https://dronetm.hotosm.test"
34+
35+
email:
36+
require_verification: false
37+
38+
passcode:
39+
enabled: false # Disabled for development (no SMTP server)
40+
41+
session:
42+
lifespan: 1h
43+
issuer: "https://login.hotosm.test"
44+
audience:
45+
- "https://portal.hotosm.test"
46+
- "https://login.hotosm.test"
47+
- "https://dronetm.hotosm.test"
48+
cookie:
49+
name: "hanko"
50+
domain: ".hotosm.test" # .hotosm.test with dot enables cookie sharing across all *.hotosm.test subdomains
51+
http_only: true
52+
same_site: lax
53+
secure: true
54+
55+
third_party:
56+
redirect_url: "https://login.hotosm.test/thirdparty/callback"
57+
error_redirect_url: "https://login.hotosm.test/error"
58+
allowed_redirect_urls:
59+
- "https://portal.hotosm.test/**"
60+
- "https://login.hotosm.test/**"
61+
- "https://dronetm.hotosm.test/**"
62+
cookie:
63+
domain: ".hotosm.test" # .hotosm.test with dot enables cookie sharing across all *.hotosm.test subdomains
64+
http_only: true
65+
same_site: lax
66+
secure: true
67+
providers:
68+
google:
69+
enabled: true
70+
client_id: "YOUR_GOOGLE_CLIENT_ID.apps.googleusercontent.com"
71+
secret: "YOUR_GOOGLE_CLIENT_SECRET"
72+
allow_linking: true

0 commit comments

Comments
 (0)