Skip to content

Instantly share code, notes, and snippets.

@alvesvaren
Last active November 5, 2021 17:28
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

alvesvaren commented Nov 5, 2021

To setup certbot: curl https://gist.githubusercontent.com/alvesvaren/5175a4c6c4c4614ca499ea6e6c88d598/raw/auto-cert.sh | EMAIL="user@example.com" DOMAIN="your_domain" bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment