Skip to content

Commit

Permalink
Mention that email templates are automatically reloaded too
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupeyy committed Sep 28, 2024
1 parent 6389386 commit 6e32967
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,9 @@ To enhance security the database must support TLS connections (for non localhost
```
SQL formatting is doing with `sleek -n <file>`.
Allow & deny lists for ip bans, mail domain bans & allow lists are automatically reloaded on change.
It's strongly recommended to create the files somewhere else and only use `mv` to overwrite the files, since
file system operations are rather racy, which in worst case can lead to loading a partially written file.
(The watcher tries to minimize these events by only listening for write-close events and similar, but can't prevent
all cases.)
```
cargo install sleek@0.1.1
```
After executing `./account-server --setup` there should be a `config` directory.
Inside that directory the ban & allow lists are placed. Additionally the email templates
Expand All @@ -67,6 +63,13 @@ cp templates/email/template.html config/account_tokens.html
cp templates/email/template.html config/credential_auth_tokens.html
```
Allow & deny lists for ip bans, mail domain bans & allow lists aswell as the email templates are automatically reloaded on change.
It's strongly recommended to create the files somewhere else and only use `mv` to overwrite the files, since
file system operations are rather racy, which in worst case can lead to loading a partially written file.
(The watcher tries to minimize these events by only listening for write-close events and similar, but can't prevent
all cases.)
Tests must be executed with:
```
cargo test -- --test-threads=1
Expand Down

0 comments on commit 6e32967

Please sign in to comment.