Skip to content

Commit 72e926e

Browse files
malkoSiumauricio
andauthored
⬆️ Update Supabase template to version 1.25.03 (#76)
* ⬆️ Update Supabase template to version 1.25.03 * 🐛 Fix url in mail pointing to kong * ✨ Use new jwt helpers to generate unique jwts * 📝 Update README to reflect new changes in helpers - related PR on dokploy Dokploy/dokploy#1749 * ✨ Add pre0.21.8 version of supabase template + use jwt generation in newer template * 🔧 Add field dokploy_version for supabase templates * ⬆️ Update supabase version to 1.25.04 for dokploy >=0.1.28 * 🐛 Fix logs in supabase by adding dynamic container names and modifying vector.yml * ⬆️ Backport supabase 1.25.04 for dokploy < 0.21.8 * 📝 Add link to supabase self-hosting documentation in env file * 🚚 Change container_name_prefix to include appName * Update blueprints/pre0.21.8-supabase/template.toml * Update blueprints/supabase/template.toml * 🐛 Fix template using appname in older version of template --------- Co-authored-by: Mauricio Siu <[email protected]>
1 parent c1b9d80 commit 72e926e

File tree

7 files changed

+2129
-225
lines changed

7 files changed

+2129
-225
lines changed

README.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is the official repository for the Dokploy Open Source Templates.
1414
7. Create a pull request (PR)
1515
8. Every PR will automatically deploy a preview of the template to Dokploy.
1616
9. if anyone want to test the template before merging it, you can enter to the preview URL in the PR description, and search the template, click on the Template Card, scroll down and then copy the BASE64 value, and paste in the advanced section of your compose service, in the Import section or optional you can use the preview URL and paste in the
17-
BASE URL when creating a template.
17+
BASE URL when creating a template.
1818

1919
#### Optional
2020

@@ -138,15 +138,35 @@ Important: you can reference any variable in the `domains`, `env` and `mounts` s
138138
We have a few helpers that are very common when creating a template, these are:
139139

140140
- `domain`: This is a helper that will generate a random domain for the template.
141-
- `base64 or base64:length`: This is a helper that will encode a string to base64.
141+
- `base64 or base64:length`: This is a helper that will encode a string to base64 (lenght is the number of bytes to encode not the encoded string length).
142142
- `password or password:length`: This is a helper that will generate a random password for the template.
143-
- `hash or hash:length`: This is a helper that will generate a hash for the template.
143+
- `hash or hash:length`: This is a helper that will generate a hash for the template
144144
- `uuid`: This is a helper that will generate a uuid for the template.
145145
- `randomPort`: This is a helper that will generate a random port for the template.
146-
- `timestamp`: This is a helper that will generate a timestamp.
147-
- `jwt or jwt:length`: This is a helper that will generate a jwt for the template.
148146
- `email`: This is a helper that will generate a random email for the template.
149147
- `username`: This is a helper that will generate a random username in lowercase for the template.
148+
- `timestamp`: This is a helper that will generate a timestamp for "now" in milli-second.
149+
- `timestampms or timestampms:datetime`: This is a helper that will generate a timestamp in milli-seconds.
150+
- `timestamps or timestamps:datetime`: This is a helper that will generate a timestamp in seconds.
151+
- `datetime` parameter for `timestamps/timestampms` helpers must be a valid value for javascript new Date() (ie: `timestamps:2030-01-01T00:00:00Z`)
152+
- `jwt`: This is a helper that will generate a jwt for the template.
153+
- `jwt:length`: will generate a random hex string of bytes length. _This should not be used in newer templates_
154+
- `jwt:secret_var_name`: will generate a jwt with some default values, secret var name should be the name of the variable holding the secret
155+
- `jwt:secret_var_name:payload_var_name`: is the same as above but you can pass partial or full payload for the jwt.
156+
Here's a full example
157+
```toml
158+
[variables]
159+
main_domain = "${domain}"
160+
mysecret = "cQsdycq1hDLopQonF6jUTqgQc5WEZTwWLL02J6XJ"
161+
mypayload = """
162+
{
163+
"role": "jwt-tester",
164+
"iss": "dokploy-templates",
165+
"exp": ${timestamps:2030-01-01T00:00:00Z}
166+
}
167+
"""
168+
jwt = "${jwt:mysecret:mypayload}"
169+
```
150170

151171

152172

0 commit comments

Comments
 (0)