optimze images on the fly.
go get github.com/go-batteries/optimux
Licensed under AGPL-3.0.
Base URL: https://hostname/resize?image_url=some_url
Params:
format=, webp and jpe?gsizes=, width x heightencoder=, empty, progress, json. progress sends only chunks of data at a time, aiming to leverage http2quality=, values between 1 and 90
only on linux.
$ make tmpfs.setup
$ make gen.certs
$ make run.dynscTo serve via nginx:
sudo cp ./nginx.optimux.conf /etc/nginx/sites-enabled
sudo mkdir -p /tmp/shm/edge_cache && sudo chown -R www-data:www-data /tmp/shm/edge_cache
sudo nginx -t
sudo systemctl reload nginxIf you want to add a new ENV variable.
- Add it to
Dockerfile - Add it to
./infra/supervisord.conf - Add it to
./infra/terraform/variables.tf - Pass it to the ec2 instance, by changing in
aws_ecs_task_definitionblock inmain.tf - and
./infra/terraform/ecs-task-definition.json.tmpl, underenvironments