-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
50 lines (38 loc) · 2.08 KB
/
wrangler.toml
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
name = "hexa8authcfworker-template"
type = "javascript"
account_id = "your cloudflare account id"
workers_dev = false
routes = ["*.hexaeight.com/login*"]
zone_id = "your zoneid"
compatibility_date = "2021-11-24"
kv_namespaces = [
{ binding = "APIKeys", id = "put the KV ID generated for APIKeys" },
{ binding = "DATASink", id = "put the KV ID generated in DATASink" },
{ binding = "AUDITLogs", id = "put the KV ID generated in AUDITLogs" }
]
[vars]
#Change this if you need to set a different protocol for datasink
datasinkprotocol = "https"
#Set usecfdatasink to NO if you dont want to use CF Worker as a Datasink.
#HexaEight Serverless is tested and works with api.cl1p.net and could be an alternative which provides cost effective datasink.
usecfdatasink = "YES"
#Change the domain below
datasink = "login.yourdomain.xxx/login/sink"
#Prefix a dot to allow a cookie to be set for all you subdomains
cookiedomain = ".yourdomain.xxx"
#Change emaildomainfilter to NO if you want to allow authentication from any email address
emaildomainsfilter = "YES"
#If the email domain filter is set to YES enter a comma seperated list of domains with the single quotes as shown below
emaildomainslist = "'gmail.com','facebook.com','yahoo.com'"
#Change your domain below and set the server name to the subdomain of your choice. Esure the datasink subdomain matches with the same subdomain.
servername = "login.yourdomain.xxx"
#Do not change the below two settings
path = "/"
redirecturl = "/loginsuccess"
#Input the Client code (Client ID) generated above
clientappcode = "put your client ID here"
#This is a small lock image displayed at the bottom of the page which you can customize if you want to put your own logo.
bottomlogo = "https://cdn1.iconfinder.com/data/icons/hawcons/32/698845-icon-118-lock-rounded-128.png"
#By enabling auditing every login success, blocked logins, cookie extension success and failure messages are captured in the AUDITLogs KV
#Logs are retained for a week after which the logs expire automatically. Change it to DISABLED if you want to disable auditing.
auditing = "ENABLED"