Skip to content

Instantly share code, notes, and snippets.

@nbigot
Created December 21, 2022 11:29
Show Gist options
  • Save nbigot/bc786c9bb2ffc42cb243f68acc4325a9 to your computer and use it in GitHub Desktop.
Save nbigot/bc786c9bb2ffc42cb243f68acc4325a9 to your computer and use it in GitHub Desktop.
How to run tinyproxy server on an aws ec2 instance at startup
#!/bin/bash
sudo yum update -y
sudo yum install -y docker
sudo usermod -a -G docker ec2-user
id ec2-user
newgrp docker
sudo systemctl enable docker.service
sudo systemctl start docker.service
docker run -d --name=tinyproxy -p 8888:8888 --env BASIC_AUTH_USER=yourLOGIN --env BASIC_AUTH_PASSWORD=yourSECRETpassword --env TIMEOUT=60 monokal/tinyproxy:latest ANY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment