Created
March 18, 2024 22:58
-
-
Save serhiioliinyk/ca3ce1180d0f5a4f6ffcd7cb5408c2b3 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# | |
# __________ .___ __ .__ .__ | |
#\______ \_______ _______ ______.__.| | ____ _______/ |______ | | | | | |
# | ___/\_ __ \/ _ \ \/ < | || |/ \ / ___/\ __\__ \ | | | | | |
# | | | | \( <_> > < \___ || | | \\___ \ | | / __ \| |_| |__ | |
# |____| |__| \____/__/\_ \/ ____||___|___| /____ > |__| (____ /____/____/ | |
# \/\/ \/ \/ \/ | |
# | |
# Nginx Proxy Manager Install Script | Copyright 2020, Christian Clark | |
# | |
# SET IP | |
private=$(ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}') | |
behindnat=$(curl -s http://whatismyip.akamai.com/) | |
echo "This command is designed to be run on a fresh system. If it is not, turn back and reinstall or redeploy this instance." | |
clear | |
echo "Updating aptitude cache......"; apt update | |
clear | |
echo "Installing Docker......"; apt install docker | |
clear | |
echo "Installing Docker Compose......"; sudo apt install docker-compose | |
clear | |
echo "Installing git client......"; apt install git | |
clear | |
echo "Cloning proxy directory......"; git clone https://github.com/serhiioliinyk/services-deployment | |
clear | |
echo "Changing directory......"; cd services-deployment/nginx-proxy-manager | |
clear | |
echo "Starting Proxy......"; docker-compose up -d | |
clear | |
echo -e "\e[31mNginx Proxy Manager has successfully been installed.\e[0m"; | |
echo "To login, head to http://$private:81 and continue configuration"; | |
echo "The default credentials are:"; | |
echo "Username/Email: admin@example.com"; | |
echo "Password: changeme"; | |
echo "Change these as soon as possible."; | |
echo "If this is a Public Cloud instance, the correct URL is: http://$behindnat:81" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment