Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.42 KB

README.md

File metadata and controls

50 lines (35 loc) · 1.42 KB

You can't download this image

Site status

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