Automated setup for Traefik reverse proxy in an LXC container with proper security configurations and dynamic routing capabilities.
- Automated LXC container creation and configuration
- Secure Traefik installation with proper permissions
- Dynamic configuration support
- TLS/SSL support with automatic certificate management
- Middleware configurations for security and routing
- Systemd service integration
- Automatic updates capability
- MOTD notifications for available updates
Run the following command to install Traefik in Proxmox:
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/peterweissdk/traefik/refs/heads/main/install.sh)"
This will:
- Create an LXC container
- Install Traefik
- Configure permissions and security
- Set up the service
Configuration files are stored in /etc/traefik
& /etc/traefik/dynamic
Please change the configuration files to match your needs
traefik.yaml
: Main Traefik configurationtls.yaml
: TLS/SSL settingsmiddlewares.yaml
: HTTP middleware configurationsdefaultRouters.yaml
: Default routing rulestestRoute.yaml
: Test routing configuration.env
: Environment variables (for DNS challenge credentials)
To generate MD5 hashed passwords for middleware authentication:
openssl passwd -1 "my-password"
Default credentials:
- Username:
root
- Password:
traefik
.
├── traefik_conf/
│ ├── .env
│ ├── traefik.yaml
│ ├── defaultRouters.yaml
│ ├── middlewares.yaml
│ ├── testRoute.yaml
│ └── tls.yaml
├── install.sh
├── install_traefik.sh
├── install_traefik_container.sh
├── setup_traefik.sh
├── traefik_update.sh
├── traefik.service
├── 99-traefik-updates
├── LICENSE
└── README.md
Monitor Traefik's health:
- Service status:
systemctl status traefik
- View logs:
journalctl -u --boot traefik
- Access dashboard (if enabled):
https://your-domain/dashboard/
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues or need support, please file an issue on the GitHub repository.
This project is licensed under the GNU GENERAL PUBLIC LICENSE v3.0 - see the LICENSE file for details.