Created
October 17, 2018 13:40
-
-
Save chikien276/fe1e483e10c6d0690d52aa1300798f40 to your computer and use it in GitHub Desktop.
Nginx with minio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adduser username | |
usermod -aG sudo username | |
ufw limit 22 | |
apt update && apt dist-upgrade -y | |
# install mino | |
rsync -avz minio.service [email protected]:/home/username | |
# instal nginx and let's encrypt https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 | |
sudo add-apt-repository ppa:certbot/certbot | |
sudo apt-get update | |
sudo apt-get install python-certbot-nginx | |
sudo nano /etc/nginx/sites-available/default | |
sudo nginx -t | |
sudo ufw allow 'Nginx Full' | |
# start minio use systemd | |
chmod +x ~/bin/minio | |
# create minio service file | |
sudo cp minio.service /etc/systemd/system/ | |
sudo systemctl daemon-reload | |
sudo systemctl start minio | |
sudo systemctl status minio | |
sudo systemctl enable minio | |
# config nginx https://docs.minio.io/docs/setup-nginx-proxy-with-minio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Minio S3 like service | |
After=syslog.target network.target | |
[Service] | |
ExecStart=/home/username/bin/minio server /home/username/data | |
Restart=always | |
RestartSec=5s | |
User=username | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment