Last active
August 22, 2024 13:25
-
-
Save alvesvaren/5175a4c6c4c4614ca499ea6e6c88d598 to your computer and use it in GitHub Desktop.
install wings
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 | |
apt-get update && apt-get install -y certbot | |
certbot certonly --standalone --email $EMAIL -nd $DOMAIN |
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 | |
echo "Installing wings..." | |
which docker &>/dev/null || CHANNEL=stable bash -c "$(curl -sSL https://get.docker.com/)" | |
systemctl enable --now docker | |
mkdir -p /etc/pterodactyl | |
curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/latest/download/wings_linux_amd64 | |
chmod u+x /usr/local/bin/wings | |
curl https://gist.githubusercontent.com/alvesvaren/5175a4c6c4c4614ca499ea6e6c88d598/raw/wings.service -o /etc/systemd/system/wings.service | |
systemctl enable --now wings | |
echo "Done!" | |
echo | |
echo "Allocation ip to use:" | |
hostname -I | awk '{print $1}' |
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
[Unit] | |
Description=Pterodactyl Wings Daemon | |
After=docker.service | |
Requires=docker.service | |
PartOf=docker.service | |
[Service] | |
User=root | |
WorkingDirectory=/etc/pterodactyl | |
LimitNOFILE=4096 | |
PIDFile=/var/run/wings/daemon.pid | |
ExecStart=/usr/local/bin/wings | |
Restart=on-failure | |
StartLimitInterval=180 | |
StartLimitBurst=30 | |
RestartSec=5s | |
[Install] | |
WantedBy=multi-user.target |
To setup certbot: curl https://gist.githubusercontent.com/alvesvaren/5175a4c6c4c4614ca499ea6e6c88d598/raw/auto-cert.sh | EMAIL="[email protected]" DOMAIN="your_domain" bash
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use:
curl https://gist.githubusercontent.com/alvesvaren/5175a4c6c4c4614ca499ea6e6c88d598/raw/auto-wings.sh | bash