fork/static-web-server

git clone https://git.julia.blue/fork/static-web-server

Jose QuintanaMerge pull request #40 from tim-seoss/listenfd21bdf8c

allow-symlink
536 B18 linesraw
1# Example systemd socket unit file (see systemd.socket(5) man page) for use
2# with the --fd option of static-web-server.  This allows e.g. binding the
3# server to a TCP port number 0 - 1023 without running the server as root,
4# and/or running sws in an isolated network name space.
5#
6# A comprehensive description can be found in:
7# http://0pointer.de/blog/projects/socket-activation.html
8# ...and the linked articles.
9
10[Unit]
11Description=Static Web Server Socket
12
13[Socket]
14ListenStream=443
15Accept=no
16
17[Install]
18WantedBy=sockets.target