docs: update home/server/file-server

This commit is contained in:
Lukas Forsberg 2025-05-30 15:54:15 +02:00 committed by Lukas Forsberg
parent e5d7bba1dd
commit 4776d4e319

View File

@ -2,11 +2,29 @@
title: File Server title: File Server
description: A simple python basd File server running on the home server description: A simple python basd File server running on the home server
published: true published: true
date: 2025-05-30T13:53:42.334Z date: 2025-05-30T13:54:14.028Z
tags: tags:
editor: markdown editor: markdown
dateCreated: 2025-05-30T13:53:42.334Z dateCreated: 2025-05-30T13:53:42.334Z
--- ---
# File Server # File Server
Your content here
## 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
```