<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>docs/content/features/file-descriptor-socket-passing.md - fork/static-web-server @ allow-symlink</title>
<meta name="description" content="docs/content/features/file-descriptor-socket-passing.md in fork/static-web-server at allow-symlink.">
<meta property="og:title" content="docs/content/features/file-descriptor-socket-passing.md - fork/static-web-server @ allow-symlink">
<meta property="og:description" content="docs/content/features/file-descriptor-socket-passing.md in fork/static-web-server at allow-symlink.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="git.julia.blue">
<link rel="stylesheet" href="/css/style.css?v=62">
<script type="module" src="/js/main.js?v=62"></script>
</head>
<body>
<main data-ref="allow-symlink" data-tip="4414610fe1b0370ff0ac415e9367548840584710">
<noscript>
  <div class="callout">
    <p>
      hey! this is a static git repo viewer. commit diffs, file history,
      older commits and other revisions won't load without javascript.
    </p>
    <p>
      you are still able to view source files on branch/tag tips,
      but the experience is degraded.
    </p>
  </div>
</noscript>
<header class="repo"><div>
<h1>fork/static-web-server</h1>
</div>
<pre class="clone">git clone https://git.julia.blue/fork/static-web-server</pre>
</header>
<p class="snapshot-commit"><span class="commit-author">Matthias Schoettle</span><span class="commit-message" data-commit="dd43d06551fcf853e0012381c76af5b832d23b57">refactor: format check support Markdown files via mdformat (#597)</span><span class="snapshot-sha sha" data-commit="dd43d06551fcf853e0012381c76af5b832d23b57">dd43d06</span><time datetime="2025-12-07T04:40:21-05:00" title="2025-12-07 04:40:21 -0500">2025-12-07</time></p>
<header class="topbar"><details class="switcher"><summary>allow-symlink</summary><div class="menu"><strong>branches</strong><a class="current" href="/fork/static-web-server/ref/allow-symlink/">allow-symlink</a><a class="all" href="/fork/static-web-server/refs">all refs →</a></div></details><nav class="crumbs"><a href="/fork/static-web-server/">static-web-server</a> / <a href="/fork/static-web-server/ref/allow-symlink/tree/docs/">docs</a> / <a href="/fork/static-web-server/ref/allow-symlink/tree/docs/content/">content</a> / <a href="/fork/static-web-server/ref/allow-symlink/tree/docs/content/features/">features</a> / <span class="cur">file-descriptor-socket-passing.md</span></nav>
<span class="view-stats"><span>3.9 KiB</span><span>93 lines</span></span><span class="actions"><a class="raw" href="/fork/static-web-server/raw/556092b3f34df803210c1e63ab93b532c766995c/docs/content/features/file-descriptor-socket-passing.md">raw</a></span></header>
<div class="markdown-view"><input type="radio" name="markdown-view" id="markdown-rendered" checked><label for="markdown-rendered">rendered</label><input type="radio" name="markdown-view" id="markdown-code"><label for="markdown-code">code</label><section class="readme rendered"><h1>File Descriptor Socket Passing</h1>
<p><strong>SWS</strong> provides the ability to accept a socket listener as a file descriptor for use in sandboxing and on-demand applications via <code>systemd</code> (Linux), <code>launchd</code> (Macos) or similar.</p>
<p>!!! tip "Tip"</p>
<pre><code>The [Socket Activation](http://0pointer.de/blog/projects/socket-activation.html) model is an alternative to TCP port binding.
</code></pre>
<p>Socket activation is supported by the <code>-f, --fd</code> option or the equivalent <a href="/fork/static-web-server/ref/allow-symlink/blob/docs/content/configuration/environment-variables.md#server_listen_fd">SERVER_LISTEN_FD</a> env.</p>
<p>If you are using <code>inetd</code>, its "<code>wait</code>" option should be used in conjunction with static-web-server's <code>--fd 0</code>
option.</p>
<h2>Systemd</h2>
<p>If you're using <code>systemd</code> on Linux, there is a fully working example in the SWS Git repository under the <a href="https://github.com/static-web-server/static-web-server/tree/master/systemd">.<code>/systemd</code></a> directory.</p>
<h3>Service example</h3>
<p>Below is a <code>systemd</code> service example. Follow the steps to create an SWS service using HTTP2 (<code>static-web-server.service</code>).
The service will bind SWS to a TCP <code>443</code> privileged port without running the server as root.</p>
<p>If you want to change the server port used by the service, edit the value of <code>ListenStream</code> in the <code>static-web-server.socket</code> file.</p>
<p>The template files can be found in <a href="https://github.com/static-web-server/static-web-server/tree/master/systemd">.<code>/systemd</code></a> directory.</p>
<pre class="language-bash"><a-c># 1. Copy environment file template</a-c>
<a-c>#    Use an environment variable file, add/modify the values if necessary and</a-c>
<a-c>#    assign the proper owner/permissions to the environment variable file.</a-c>
<a-c>#    TIP: you could skip this step and use a config file if you prefer.</a-c>
<a-f>cp</a-f> systemd/etc_default_static-web-server /etc/default/static-web-server

<a-c># TIP: For example, you could create a `nologin` user with specific privileges.</a-c>

<a-c># 2. Copy service file templates</a-c>
<a-f>cp</a-f> systemd/static-web-server.s* /etc/systemd/system/

<a-c># 3. Make sure that the `EnvironmentFile` and `ExecStart` values</a-c>
<a-c>#    of the service match to the corresponding file paths in the `static-web-server.service` file.</a-c>
<a-c>#    TIP: Use absolute paths. </a-c>
<a-c># EnvironmentFile=/etc/default/static-web-server</a-c>
<a-c># ExecStart=/usr/local/bin/static-web-server --fd 0</a-c>

<a-c># 4. Make sure to change this value with an existing user editing the `static-web-server.service` file.</a-c>
<a-c># SupplementaryGroups=www-data</a-c>

<a-c># 5. Create/reuse a directory for placing the certificate and private key.</a-c>
<a-c>#    TIP: this is an example, you can create/reuse your own dirs.</a-c>
<a-f>sudo</a-f> mkdir /etc/static-web-server

<a-c># 6. For example purposes, copy the testing cert/key files.</a-c>
<a-c>#    TIP: Use your own cert/key files instead.</a-c>
<a-f>sudo</a-f> cp tests/tls/local.dev_cert.ecc.pem /etc/static-web-server/
<a-f>sudo</a-f> cp tests/tls/local.dev_key.ecc.pem /etc/static-web-server/

<a-c># 7. Create/reuse a root directory (example only)</a-c>
<a-f>sudo</a-f> mkdir <a-co>-p</a-co> /var/www/html
<a-f>sudo</a-f> sh <a-co>-c</a-co> <a-s>&#39;echo &quot;&lt;h1&gt;Static Web Server is running!&lt;/h1&gt;&quot; &gt; /var/www/html/index.html&#39;</a-s>

<a-c># 8. Reload systemd manager configuration</a-c>
<a-f>sudo</a-f> systemctl daemon-reload

<a-c># 9. Start the SWS service</a-c>
<a-f>sudo</a-f> systemctl start static-web-server.service

<a-c># 10. Show the status of the SWS service running</a-c>
<a-f>sudo</a-f> systemctl status static-web-server.service

<a-c># 11. Enable the service to start automatically at boot (optional)</a-c>
<a-f>sudo</a-f> systemctl enable static-web-server.service

<a-c># 12. Analyze and debug the SWS service security</a-c>
<a-f>sudo</a-f> systemd-analyze security static-web-server.service
<a-c>#    If the service was successfully created then you should get something like:</a-c>
<a-c>#    → Overall exposure level for static-web-server.service: 0.6 SAFE 😀</a-c></pre>
<h2>Testing</h2>
<p>Alternatively, the lightweight <a href="https://github.com/mitsuhiko/systemfd"><code>systemfd</code></a> utility may be useful, especially for testing purposes.</p>
<p>For example, using <code>systemfd</code> utility as follows:</p>
<pre class="language-bash"><a-f>sudo</a-f> systemfd <a-co>--no-pid</a-co> <a-co>-s</a-co> http::8091 <a-co>--</a-co> path/to/static-web-server <a-co>--fd</a-co> 0</pre>
<p>Or if you want to test using an environment variables file then you could use <a href="https://github.com/joseluisq/enve">Enve</a>.</p>
<pre class="language-bash"><a-f>sudo</a-f> enve <a-co>-f</a-co> /path/to/environment.env systemfd <a-co>--no-pid</a-co> <a-co>-s</a-co> http::443 <a-co>--</a-co> path/to/static-web-server <a-co>--fd</a-co> 0</pre>
</section><div class="code-panel"><pre class="code src language-markdown"><span class="code-line"><a class="ln" id="L1" href="#L1">1</a><span class="code-text"><a-p>#</a-p> <a-tt>File Descriptor Socket Passing</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L2" href="#L2">2</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L3" href="#L3">3</a><span class="code-text">**SWS** provides the ability to accept a socket listener as a file descriptor for use in sandboxing and on-demand applications via `systemd` (Linux), `launchd` (Macos) or similar.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L5" href="#L5">5</a><span class="code-text">!!! tip &quot;Tip&quot;</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L7" href="#L7">7</a><span class="code-text"><a-tl>    The [Socket Activation](http://0pointer.de/blog/projects/socket-activation.html) model is an alternative to TCP port binding.</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L8" href="#L8">8</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L9" href="#L9">9</a><span class="code-text">Socket activation is supported by the `-f, --fd` option or the equivalent [SERVER_LISTEN_FD](./../configuration/environment-variables.md#server_listen_fd) env.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L10" href="#L10">10</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L11" href="#L11">11</a><span class="code-text">If you are using `inetd`, its &quot;`wait`&quot; option should be used in conjunction with static-web-server&#39;s `--fd 0`</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L12" href="#L12">12</a><span class="code-text">option.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L13" href="#L13">13</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L14" href="#L14">14</a><span class="code-text"><a-p>##</a-p> <a-tt>Systemd</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L15" href="#L15">15</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L16" href="#L16">16</a><span class="code-text">If you&#39;re using `systemd` on Linux, there is a fully working example in the SWS Git repository under the [.`/systemd`](https://github.com/static-web-server/static-web-server/tree/master/systemd) directory.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L17" href="#L17">17</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L18" href="#L18">18</a><span class="code-text"><a-p>###</a-p> <a-tt>Service example</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L19" href="#L19">19</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L20" href="#L20">20</a><span class="code-text">Below is a `systemd` service example. Follow the steps to create an SWS service using HTTP2 (`static-web-server.service`).</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L21" href="#L21">21</a><span class="code-text">The service will bind SWS to a TCP `443` privileged port without running the server as root.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L22" href="#L22">22</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L23" href="#L23">23</a><span class="code-text">If you want to change the server port used by the service, edit the value of `ListenStream` in the `static-web-server.socket` file.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L24" href="#L24">24</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L25" href="#L25">25</a><span class="code-text">The template files can be found in [.`/systemd`](https://github.com/static-web-server/static-web-server/tree/master/systemd) directory.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L26" href="#L26">26</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L27" href="#L27">27</a><span class="code-text"><a-p>```</a-p><a-tl>sh</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L28" href="#L28">28</a><span class="code-text"><a-p># 1. Copy environment file template</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L29" href="#L29">29</a><span class="code-text"><a-p>#    Use an environment variable file, add/modify the values if necessary and</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L30" href="#L30">30</a><span class="code-text"><a-p>#    assign the proper owner/permissions to the environment variable file.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L31" href="#L31">31</a><span class="code-text"><a-p>#    TIP: you could skip this step and use a config file if you prefer.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L32" href="#L32">32</a><span class="code-text"><a-p>cp systemd/etc_default_static-web-server /etc/default/static-web-server</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L33" href="#L33">33</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L34" href="#L34">34</a><span class="code-text"><a-p># TIP: For example, you could create a `nologin` user with specific privileges.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L35" href="#L35">35</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L36" href="#L36">36</a><span class="code-text"><a-p># 2. Copy service file templates</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L37" href="#L37">37</a><span class="code-text"><a-p>cp systemd/static-web-server.s* /etc/systemd/system/</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L38" href="#L38">38</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L39" href="#L39">39</a><span class="code-text"><a-p># 3. Make sure that the `EnvironmentFile` and `ExecStart` values</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L40" href="#L40">40</a><span class="code-text"><a-p>#    of the service match to the corresponding file paths in the `static-web-server.service` file.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L41" href="#L41">41</a><span class="code-text"><a-p>#    TIP: Use absolute paths. </a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L42" href="#L42">42</a><span class="code-text"><a-p># EnvironmentFile=/etc/default/static-web-server</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L43" href="#L43">43</a><span class="code-text"><a-p># ExecStart=/usr/local/bin/static-web-server --fd 0</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L44" href="#L44">44</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L45" href="#L45">45</a><span class="code-text"><a-p># 4. Make sure to change this value with an existing user editing the `static-web-server.service` file.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L46" href="#L46">46</a><span class="code-text"><a-p># SupplementaryGroups=www-data</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L47" href="#L47">47</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L48" href="#L48">48</a><span class="code-text"><a-p># 5. Create/reuse a directory for placing the certificate and private key.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L49" href="#L49">49</a><span class="code-text"><a-p>#    TIP: this is an example, you can create/reuse your own dirs.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L50" href="#L50">50</a><span class="code-text"><a-p>sudo mkdir /etc/static-web-server</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L51" href="#L51">51</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L52" href="#L52">52</a><span class="code-text"><a-p># 6. For example purposes, copy the testing cert/key files.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L53" href="#L53">53</a><span class="code-text"><a-p>#    TIP: Use your own cert/key files instead.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L54" href="#L54">54</a><span class="code-text"><a-p>sudo cp tests/tls/local.dev_cert.ecc.pem /etc/static-web-server/</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L55" href="#L55">55</a><span class="code-text"><a-p>sudo cp tests/tls/local.dev_key.ecc.pem /etc/static-web-server/</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L56" href="#L56">56</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L57" href="#L57">57</a><span class="code-text"><a-p># 7. Create/reuse a root directory (example only)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L58" href="#L58">58</a><span class="code-text"><a-p>sudo mkdir -p /var/www/html</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L59" href="#L59">59</a><span class="code-text"><a-p>sudo sh -c &#39;echo &quot;&lt;h1&gt;Static Web Server is running!&lt;/h1&gt;&quot; &gt; /var/www/html/index.html&#39;</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L60" href="#L60">60</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L61" href="#L61">61</a><span class="code-text"><a-p># 8. Reload systemd manager configuration</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L62" href="#L62">62</a><span class="code-text"><a-p>sudo systemctl daemon-reload</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L63" href="#L63">63</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L64" href="#L64">64</a><span class="code-text"><a-p># 9. Start the SWS service</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L65" href="#L65">65</a><span class="code-text"><a-p>sudo systemctl start static-web-server.service</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L66" href="#L66">66</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L67" href="#L67">67</a><span class="code-text"><a-p># 10. Show the status of the SWS service running</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L68" href="#L68">68</a><span class="code-text"><a-p>sudo systemctl status static-web-server.service</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L69" href="#L69">69</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L70" href="#L70">70</a><span class="code-text"><a-p># 11. Enable the service to start automatically at boot (optional)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L71" href="#L71">71</a><span class="code-text"><a-p>sudo systemctl enable static-web-server.service</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L72" href="#L72">72</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L73" href="#L73">73</a><span class="code-text"><a-p># 12. Analyze and debug the SWS service security</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L74" href="#L74">74</a><span class="code-text"><a-p>sudo systemd-analyze security static-web-server.service</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L75" href="#L75">75</a><span class="code-text"><a-p>#    If the service was successfully created then you should get something like:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L76" href="#L76">76</a><span class="code-text"><a-p>#    → Overall exposure level for static-web-server.service: 0.6 SAFE 😀</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L77" href="#L77">77</a><span class="code-text"><a-p>```</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L78" href="#L78">78</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L79" href="#L79">79</a><span class="code-text"><a-p>## </a-p><a-tt>Testing</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L80" href="#L80">80</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L81" href="#L81">81</a><span class="code-text"><a-p>Alternatively, the lightweight [`systemfd`](https://github.com/mitsuhiko/systemfd) utility may be useful, especially for testing purposes.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L82" href="#L82">82</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L83" href="#L83">83</a><span class="code-text"><a-p>For example, using `systemfd` utility as follows:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L84" href="#L84">84</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L85" href="#L85">85</a><span class="code-text"><a-p>```</a-p><a-tl>sh</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L86" href="#L86">86</a><span class="code-text"><a-p>sudo systemfd --no-pid -s http::8091 -- path/to/static-web-server --fd 0</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L87" href="#L87">87</a><span class="code-text"><a-p>```</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L88" href="#L88">88</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L89" href="#L89">89</a><span class="code-text"><a-p>Or if you want to test using an environment variables file then you could use [Enve](https://github.com/joseluisq/enve).</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L90" href="#L90">90</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L91" href="#L91">91</a><span class="code-text"><a-p>```</a-p><a-tl>sh</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L92" href="#L92">92</a><span class="code-text"><a-p>sudo enve -f /path/to/environment.env systemfd --no-pid -s http::443 -- path/to/static-web-server --fd 0</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L93" href="#L93">93</a><span class="code-text"><a-p>```</a-p></span></span></pre></div></div>
</main>
</body>
</html>
