Skip to main content

How to Install Traefik in Debian (Without Docker)

 Download the suitable version of Traefik for your system from here:

https://github.com/traefik/traefik/releases

as an example, we'll be download the linux 64 bit version:

wget https://github.com/traefik/traefik/releases/download/v2.8.7/traefik_v2.8.7_linux_amd64.tar.gz

extract those package:

tar -xzvf traefik_v2.8.7_linux_amd64.tar.gz

set the traefik as executable and move the traefik binary to linux bin folder

chmod +x traefik

mv traefik /usr/local/bin/traefik

Give the traefik binary the ability to bind to privileged ports (e.g. 80, 443) as a non-root user:

sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/traefik

Set up the user, group, and directories that will be needed:


sudo groupadd -g 321 traefik

sudo useradd \

  -g traefik --no-user-group \

  --home-dir /var/www --no-create-home \

  --shell /usr/sbin/nologin \

  --system --uid 321 traefik


sudo mkdir /etc/traefik

sudo mkdir /etc/traefik/acme

sudo chown -R root:root /etc/traefik

sudo chown -R traefik:traefik /etc/traefik/acme


Place your traefik configuration file ("traefik.toml") in the proper directory and give it appropriate ownership and permissions:


sudo cp /path/to/traefik.toml /etc/traefik/

sudo chown root:root /etc/traefik/traefik.toml

sudo chmod 644 /etc/traefik/traefik.toml


Install the systemd service unit configuration file, reload the systemd daemon, and start traefik:


sudo cp /path/to/traefik.service /etc/systemd/system/

sudo chown root:root /etc/systemd/system/traefik.service

sudo chmod 644 /etc/systemd/system/traefik.service

sudo systemctl daemon-reload

sudo systemctl start traefik.service


Have the traefik service start automatically on boot if you like:

sudo systemctl enable traefik.service


.


Comments

Popular posts from this blog

Create AdminLTE Dashboard with NextJS

Sure, you can create an AdminLTE dashboard in a Next.js project using TypeScript. Here's a step-by-step guide:  Create a Next.js Project with TypeScript:  If you haven't already, create a new Next.js project with TypeScript by running the following commands: npx create-next-app my-adminlte-dashboard --use-npm --typescript cd my-adminlte-dashboard Install Dependencies: 

Cara Disable Antimalware Service Executable di Windows 10

Disadari atau tidak, Windows 10 (dan juga windows-windows lainnya) hadir dengan banyak sekali aplikasi bloatware (aplikasi yang tidak perlu-perlu amat dimiliki oleh end user). Contohnya, adalah aplikasi yang seharusnya sudah tergantikan fungsinya oleh antivirus, seperti Antimalware Service Executable . Aplikasi ini dicurigai membuat Windows 10 mengalami inefisiensi memori/RAM, memakan resource yang tinggi, dengan Load yang tinggi (tanpa limit terkadang). Nah, berikut adalah cara men-disable nya: Tekan tombol Windows + I untuk membuka apliaksi Windows Setting. Pilih icon menu Update and Security Pilih lagi menu disamping kiri Windows Security Pada jendela baru yang muncul, ada pilihan Virus & Threat protection Klik ini Lalu matikan proses Real-time protection tersebut. Dengan Regedit. Buka dialog regedit, Windows + R dan ketik ‘regedit’ Cari Folder regedit ini HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Buat sebuah DWORD baru dengan klik kanan