diff --git a/home/server/file-server.md b/home/server/file-server.md index d9ae246..81b47ce 100644 --- a/home/server/file-server.md +++ b/home/server/file-server.md @@ -2,11 +2,29 @@ title: File Server description: A simple python basd File server running on the home server published: true -date: 2025-05-30T13:53:42.334Z +date: 2025-05-30T13:54:14.028Z tags: editor: markdown dateCreated: 2025-05-30T13:53:42.334Z --- # File Server -Your content here \ No newline at end of file + + +## Systemd + + +``` +Description=Start a simple python file server on port 3015 mapping the Drive folder +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/python -m http.server 3015 --bind 0.0.0.0 +WorkingDirectory=/home/lukas/Drive +Restart=on-failure + +[Install] +WantedBy=multi-user.target + +``` \ No newline at end of file