Skip to content

Instantly share code, notes, and snippets.

@Zoddo
Zoddo / simplehttp.service
Last active June 27, 2020 18:10 — forked from funzoneq/simplehttp.service
A systemd file for a python SimpleHTTPServer with some hardening
# Based of https://gist.github.com/funzoneq/737cd5316e525c388d51877fb7f542de
[Unit]
Description=Job that runs the python SimpleHTTPServer daemon
Documentation=man:SimpleHTTPServer(1)
After=network.target
[Service]
Type=simple
AmbientCapabilities=CAP_NET_BIND_SERVICE