Skip to content

Instantly share code, notes, and snippets.

@alvesvaren
Last active August 22, 2024 13:25
Show Gist options
  • Save alvesvaren/5175a4c6c4c4614ca499ea6e6c88d598 to your computer and use it in GitHub Desktop.
Save alvesvaren/5175a4c6c4c4614ca499ea6e6c88d598 to your computer and use it in GitHub Desktop.
install wings
#!/bin/bash
apt-get update && apt-get install -y certbot
certbot certonly --standalone --email $EMAIL -nd $DOMAIN
#!/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}'
[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
@alvesvaren
Copy link
Author

To use: curl https://gist.githubusercontent.com/alvesvaren/5175a4c6c4c4614ca499ea6e6c88d598/raw/auto-wings.sh | bash

@alvesvaren
Copy link
Author

alvesvaren commented Nov 5, 2021

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