commit
d5fee1dcdc
1 changed files with 5 additions and 4 deletions
|
@ -57,9 +57,10 @@ sms-handler --port 80125 --host 192.168.100.55
|
||||||
|
|
||||||
### As a daemon (Systemd)
|
### As a daemon (Systemd)
|
||||||
|
|
||||||
Create a service as follows.
|
Create a service as below, adapt the email addresses (`snoopy@peanuts.com` in this example).
|
||||||
Pass the settings for the web server (listen address, port) in the ExecStart statement,
|
|
||||||
and the parameters as `Environment=SMS_HANDLER_MAIL_SERVER_START_TLS=yes`.
|
Settings for the web server (listen address and port) are given in the ExecStart statement.
|
||||||
|
Other parameters are given as environment variables (see above).
|
||||||
|
|
||||||
```systemd
|
```systemd
|
||||||
[Unit]
|
[Unit]
|
||||||
|
@ -101,7 +102,7 @@ git clone https://philo.ydns.eu/code/Philome/sms-handler.git
|
||||||
cd sms-handler
|
cd sms-handler
|
||||||
uv venv
|
uv venv
|
||||||
uv sync
|
uv sync
|
||||||
. .venv/bin/activate
|
. .venv/bin/activate # for bash. For fish: . .venv/bin/activate.fish
|
||||||
pytest -s tests/basic.py
|
pytest -s tests/basic.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue