Skip to content

Commit f1dfe0b

Browse files
hfdarora
authored andcommitted
feat: add auth optimizations service
1 parent 0fc1603 commit f1dfe0b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=GoTrue (Auth) optimizations
3+
4+
[Service]
5+
Type=oneshot
6+
# we don't want failures from this command to cause PG startup to fail
7+
ExecStart=/bin/bash -c "/opt/supabase-admin-api optimize auth --destination-config-file-path /etc/gotrue/gotrue.generated.env ; exit 0"
8+
User=postgrest
9+
10+
[Install]
11+
WantedBy=multi-user.target

ansible/tasks/setup-gotrue.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
src: files/gotrue.service.j2
5050
dest: /etc/systemd/system/gotrue.service
5151

52+
- name: gotrue - create optimizations file
53+
template:
54+
src: files/gotrue-optimizations.service.j2
55+
dest: /etc/systemd/system/gotrue-optimizations.service
56+
5257
- name: gotrue - reload systemd
5358
systemd:
5459
daemon_reload: yes

0 commit comments

Comments
 (0)