File tree 4 files changed +11
-2
lines changed
4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 92
92
Environment=DATABASE_URL=${{ secrets.DATABASE_URL }}
93
93
94
94
Environment=REDIS_ADDR=${{ secrets.REDIS_ADDR }}
95
+ Environment=REDIS_USER=${{ secrets.REDIS_USER }}
95
96
Environment=REDIS_PASS=${{ secrets.REDIS_PASS }}
96
97
97
-
98
98
Environment=SUPABASE_JWT_SECRET=${{ secrets.SUPABASE_JWT_SECRET }}
99
99
Environment=RESEND_API_KEY=${{ secrets.RESEND_API_KEY }}
100
100
@@ -103,7 +103,6 @@ jobs:
103
103
Environment=CF_ACCOUNT_ID=${{ secrets.CF_ACCOUNT_ID }}
104
104
Environment=R2_ACCESS_KEY_ID=${{ secrets.R2_ACCESS_KEY_ID }}
105
105
Environment=R2_ACCESS_SECRET_KEY=${{ secrets.R2_ACCESS_SECRET_KEY }}
106
-
107
106
108
107
Restart=on-failure
109
108
RestartSec=5
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ func run(ctx context.Context) error {
53
53
54
54
rdb := redis .NewClient (& redis.Options {
55
55
Addr : zyg .RedisAddr (),
56
+ Username : zyg .RedisUsername (),
56
57
Password : zyg .RedisPassword (),
57
58
DB : 0 ,
58
59
})
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ func run(ctx context.Context) error {
53
53
54
54
rdb := redis .NewClient (& redis.Options {
55
55
Addr : zyg .RedisAddr (),
56
+ Username : zyg .RedisUsername (),
56
57
Password : zyg .RedisPassword (),
57
58
DB : 0 ,
58
59
})
Original file line number Diff line number Diff line change @@ -96,6 +96,14 @@ func RedisAddr() string {
96
96
return value
97
97
}
98
98
99
+ func RedisUsername () string {
100
+ value , ok := os .LookupEnv ("REDIS_USER" )
101
+ if ! ok {
102
+ return "zygdev"
103
+ }
104
+ return value
105
+ }
106
+
99
107
func RedisPassword () string {
100
108
value , ok := os .LookupEnv ("REDIS_PASS" )
101
109
if ! ok {
You can’t perform that action at this time.
0 commit comments