-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth.yaml
108 lines (108 loc) · 3.42 KB
/
auth.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
apiVersion: apps/v1
kind: Deployment
metadata:
name: supabase-auth
spec:
replicas: 1
selector:
matchLabels:
app: supabase-auth
template:
metadata:
labels:
app: supabase-auth
spec:
containers:
- name: supabase-auth
image: supabase/gotrue:v2.158.1
ports:
- containerPort: 9999
livenessProbe:
initialDelaySeconds: 5
httpGet:
path: /health
port: 9999
env:
- name: GOTRUE_API_HOST
value: "0.0.0.0"
- name: GOTRUE_API_PORT
value: "9999"
- name: API_EXTERNAL_URL
value: http://supabase.example.com
- name: GOTRUE_DB_DRIVER
value: postgres
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: supabase-db
key: password
- name: GOTRUE_DB_DATABASE_URL
value: postgres://supabase_auth_admin:$(POSTGRES_PASSWORD)@supabase-postgres-service:5432/postgres
- name: GOTRUE_SITE_URL
value: http://app.example.com
- name: GOTRUE_URI_ALLOW_LIST
value: ${ADDITIONAL_REDIRECT_URLS}
- name: GOTRUE_DISABLE_SIGNUP
value: "true"
- name: GOTRUE_JWT_ADMIN_ROLES
value: service_role
- name: GOTRUE_JWT_AUD
value: authenticated
- name: GOTRUE_JWT_DEFAULT_GROUP_NAME
value: authenticated
- name: GOTRUE_JWT_EXP
value: "3600"
- name: GOTRUE_JWT_SECRET
valueFrom:
secretKeyRef:
name: supabase-jwt
key: secret
- name: GOTRUE_EXTERNAL_EMAIL_ENABLED
value: "true"
- name: GOTRUE_MAILER_AUTOCONFIRM
value: "false"
# - name: GOTRUE_MAILER_SECURE_EMAIL_CHANGE_ENABLED
# value: true
# - name: GOTRUE_SMTP_MAX_FREQUENCY
# value: 1s
- name: GOTRUE_SMTP_ADMIN_EMAIL
value: "[email protected]"
- name: GOTRUE_SMTP_HOST
value: smtp.example.com
- name: GOTRUE_SMTP_PORT
value: "465"
- name: GOTRUE_SMTP_USER
valueFrom:
secretKeyRef:
name: gotrue-smtp
key: username
- name: GOTRUE_SMTP_PASS
valueFrom:
secretKeyRef:
name: gotrue-smtp
key: password
- name: GOTRUE_SMTP_SENDER_NAME
value: "Project Name"
- name: GOTRUE_MAILER_URLPATHS_INVITE
value: ${API_EXTERNAL_URL}/auth/v1/verify
- name: GOTRUE_MAILER_URLPATHS_CONFIRMATION
value: ${API_EXTERNAL_URL}/auth/v1/verify
- name: GOTRUE_MAILER_URLPATHS_RECOVERY
value: ${API_EXTERNAL_URL}/auth/v1/verify
- name: GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE
value: ${API_EXTERNAL_URL}/auth/v1/verify
- name: GOTRUE_EXTERNAL_PHONE_ENABLED
value: "false"
- name: GOTRUE_SMS_AUTOCONFIRM
value: "false"
---
apiVersion: v1
kind: Service
metadata:
name: supabase-auth-service
spec:
selector:
app: supabase-auth
ports:
- protocol: TCP
port: 9999