30 lines
529 B
Markdown
30 lines
529 B
Markdown
---
|
|
title: File Server
|
|
description: A simple python basd File server running on the home server
|
|
published: true
|
|
date: 2025-05-30T13:54:14.028Z
|
|
tags:
|
|
editor: markdown
|
|
dateCreated: 2025-05-30T13:53:42.334Z
|
|
---
|
|
|
|
# File Server
|
|
|
|
|
|
## 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
|
|
|
|
``` |