command
module
Version:
v2.0.0-...-e924fdb
Opens a new window with list of versions in this module.
Published: Jan 1, 2022
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
cdn
CDN microservice to upload files to zachlatta.com that only accepts traffic from Tailscale IPs.
source code available at https://github.com/zachlatta/cdn
config
the following env variables must be set:
FS_DEST_DIR
- path on the filesystem to store files (ex. "/files")
BASE_URL
- base URL to append filenames to when returning live URLs (ex. "https://zachlatta.com/f/")
ALLOWED_SUBNET
- subnet to accept requests from (default: tailscale)
usage
POST file to "/upload" with "file" field name in multipart form
GET "/" -> return contents of README.md
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.