Skip to content
/ cdn Public

CDN microservice to upload files to zachlatta.com that only accepts traffic from Tailscale IPs

License

Notifications You must be signed in to change notification settings

zachlatta/cdn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CDN microservice to upload files to zachlatta.com that only accepts traffic from Tailscale IPs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published