Skip to content

A caching, resizing image proxy written in Go. Fork customized for SeriesGuide.

License

Notifications You must be signed in to change notification settings

UweTrottmann/imageproxy

 
 

Repository files navigation

imageproxy for SeriesGuide

A customized version of willnoris/imageproxy (info page, cached health check, host requirement). Forked at "Commits on Aug 6, 2016" 94dbd77.

Usage

# Send to server
scp imageproxy_0.7.1_amd64.deb user@host:/home/user/

# Install
sudo apt install ./imageproxy_0.7.1_amd64.deb

# Listen on all interfaces (see service config for actual commands)
imageproxy -addr 0.0.0.0:8080

Systemd service config

See /etc/systemd.

# Reload systemd config
sudo systemctl daemon-reload

# Configure to run on boot
sudo systemctl enable imageproxy.service

# Start
sudo systemctl start imageproxy.service

# Show service status
sudo systemctl status imageproxy

More at https://wiki.ubuntu.com/SystemdForUpstartUsers#Commands

Building

On WSL2 Ubuntu (best use same version as cache server).

Installing go

Using backport package instead of tarball (snap doesn't work on WSL2?).

sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go

Test with go version.

Fetching source

apt install git
git clone git@github.com:UweTrottmann/imageproxy.git
// Maybe also this:
go get github.com/UweTrottmann/imageproxy

go build

mkdir ~/Downloads/imageproxy_build/usr/bin -p
env GOOS=linux GOARCH=amd64 go build -o ~/Downloads/imageproxy_build/usr/bin/imageproxy -v github.com/UweTrottmann/imageproxy/cmd/imageproxy
chmod 755 ~/Downloads/imageproxy_build/usr/ -R

Installing fpm

apt install ruby ruby-dev rubygems build-essential
gem install --no-document fpm
fpm --version

Package deb using fpm

fpm -s dir -t deb -n "imageproxy" -C ~/Downloads/imageproxy_build -v 0.7.0 --vendor "" --maintainer "Uwe Trottmann <uwe@seriesgui.de>" --url "https://github.com/UweTrottmann/imageproxy" --description "A caching, resizing image proxy written in Go. Fork customized for SeriesGuide." .

About

A caching, resizing image proxy written in Go. Fork customized for SeriesGuide.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.2%
  • VCL 2.5%
  • Other 1.3%