Projects
View on GitHub
radiantly/you-cant-download-this-image
About
Downloading images from the web is as easy as right clicking them and selecting "Save image as..", right? Well, not anymore xD
Design & MediaMeasured star growth
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalYou can't download this image
Or can you? Visit https://youcantdownloadthisimage.com/ to give it a go!
Running your own server
If you'd just like to test the code that keeps the connection open, run the following
# Build and start serving lisa.jpg on http://localhost:3000/
make
./serve
Full setup
The following assumes that you have caddy installed with systemd.
cd /opt # Navigate to /opt
git clone https://github.com/radiantly/you-cant-download-this-image # Clone repository
chown -R :caddy you-cant-download-this-image/ # Set dir group to caddy
cd you-cant-download-this-image && make # Build
Start and enable the systemd unit file to keep it running:
ln -s /opt/you-cant-download-this-image/lisa.service /etc/systemd/system/lisa.service
systemctl daemon-reload # Reload service files on disk
systemctl start lisa # Start
systemctl enable lisa # Autostart on boot
Configure caddy:
mv /etc/caddy/Caddyfile /etc/caddy/Caddyfile.bak # backup existing Caddyfile
ln -s /opt/you-cant-download-this-image/Caddyfile /etc/caddy/Caddyfile
systemctl restart caddy
License
MIT
Explore related projects
Loading…