aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Klinkovský <1289205+lahwaacz@users.noreply.github.com>2024-10-11 04:38:01 +0000
committerJakub Klinkovský <1289205+lahwaacz@users.noreply.github.com>2024-10-11 04:39:11 +0000
commit1c4920041cf9bcc7806b362a1cdba1159a52f7ba (patch)
treeea6fe8fab1dad64d446c37dd9e1d12f199d8befc
parentFix override.conf example in README (diff)
downloadminiserve-1c4920041cf9bcc7806b362a1cdba1159a52f7ba.tar.gz
miniserve-1c4920041cf9bcc7806b362a1cdba1159a52f7ba.zip
Mention environment variables in the systemd section
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2f4d518..9f8f109 100644
--- a/README.md
+++ b/README.md
@@ -476,8 +476,16 @@ and set the `[Service]` part in the resulting `override.conf` file. For instance
ExecStart=
ExecStart=/usr/bin/miniserve --enable-tar --enable-zip --no-symlinks --verbose -i ::1 -p 1234 --title hello --color-scheme monokai --color-scheme-dark monokai -- %I
-Make sure to leave the `%I` at the very end in place or the wrong path might be served. You
-might additionally have to override `IPAddressAllow` and `IPAddressDeny` if you plan on making
+Make sure to leave the `%I` at the very end in place or the wrong path might be served.
+Alternatively, you can configure the service via environment variables:
+
+ [Service]
+ Environment=MINISERVE_ENABLE_TAR=true
+ Environment=MINISERVE_ENABLE_ZIP=true
+ Environment="MINISERVE_TITLE=hello world"
+ ...
+
+You might additionally have to override `IPAddressAllow` and `IPAddressDeny` if you plan on making
miniserve directly available on a public interface.
## Binding behavior