Imgproxy is an open-source image processing server you can install on your device to resize, crop and adjust images on the fly.
This tutorial will guide you through the installation of imgproxy on Fedora Server Latest.
Before installing imgproxy, update your Fedora Server to the latest packages using the following commands:
sudo dnf update -y
To install imgproxy, you need to have Go and Git installed on your system. Run the following command to install Go and Git:
sudo dnf install golang git -y
Now that you have installed the required packages, it's time to download and build imgproxy.
git clone https://github.com/imgproxy/imgproxy.git
cd imgproxy
go mod download
go build
After building imgproxy, it is now time to configure it.
cp config/example.toml config/imgproxy.toml
config/imgproxy.toml
file using your favorite text editor.Make sure to change the placeholders with your preferred values:
# ...
# Server section
server = "http://127.0.0.1:8080"
cert = "path/to/cert"
key = "path/to/key"
# ...
To start imgproxy service, navigate back to the imgproxy directory and run:
nohup ./imgproxy &
Using nohup
will allow you to start imgproxy in the background so that you can exit the terminal without stopping the imgproxy process.
To verify that imgproxy is running, use the following command:
curl http://localhost:8080
You should get a response containing a JSON message with the version and configuration.
By now, you have successfully installed and configured imgproxy on Fedora Server Latest. You can now start using imgproxy to process your images. Look at the imgproxy documentation to learn how to use imgproxy to resize and optimize images.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!