Last active
February 13, 2025 15:13
-
-
Save SwagDevOps/cecb0ca0b4c62e4fd65dff2829f7b920 to your computer and use it in GitHub Desktop.
Revisions
-
SwagDevOps revised this gist
Feb 13, 2025 . 1 changed file with 35 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ # file: /etc/traefik/traefik.yml entryPoints: glug: address: ":258" web: address: ":80" http: redirections: entryPoint: to: "web-sec" scheme: "https" permanent: true web-sec: address: ":443" certificatesResolvers: letsencrypt: acme: email: [email protected] storage: /etc/traefik/storage/acme.json httpChallenge: { entryPoint: web } api: dashboard: true debug: true insecure: false providers: file: directory: "/etc/traefik/providers/" watch: true log: filePath: "/var/log/traefik/messages.log" level: "DEBUG" noColor: true compress: true maxAge: 7 maxSize: 500 -
SwagDevOps revised this gist
Feb 13, 2025 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ # file: /etc/systemd/system/traefik.service [Unit] Description=Traefik Documentation=https://doc.traefik.io/traefik/ -
SwagDevOps revised this gist
Feb 13, 2025 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,5 @@ systemctl daemon-reload useradd -r -s /bin/false -U -M traefik mkdir -pv /etc/traefik/storage mkdir -pv /var/log/traefik/ chown -Rfv traefik:traefik /etc/traefik/ /var/log/traefik/ ``` -
SwagDevOps revised this gist
Feb 13, 2025 . 2 changed files with 29 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,3 +2,9 @@ vim /etc/systemd/system/traefik.service systemctl daemon-reload ``` ```sh useradd -r -s /bin/false -U -M traefik mkdir -pv /etc/traefik/storage mkdir -pv /var/log/traefik/ ``` This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ [Unit] Description=Traefik Documentation=https://doc.traefik.io/traefik/ After=network-online.target [Service] User=traefik AmbientCapabilities=CAP_NET_BIND_SERVICE Type=notify ExecStart=/usr/local/bin/traefik Restart=always WatchdogSec=1s ProtectHome=true PrivateDevices=true ProtectKernelTunables=true ProtectControlGroups=true ProtectSystem=strict ReadWritePaths=/var/log/traefik/ /etc/traefik/storage/ InaccessibleDirectories=/boot /home /media /mnt /opt /root ReadOnlyDirectories=/bin /etc /lib -/lib64 /sbin /usr /var [Install] WantedBy=multi-user.target -
SwagDevOps created this gist
Feb 13, 2025 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ ```sh vim /etc/systemd/system/traefik.service systemctl daemon-reload ```