Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tomasmetal23's full-sized avatar
🏠
Working from home

Tomás A. Márquez L. tomasmetal23

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tomasmetal23 on github.
  • I am tomasmetal23 (https://keybase.io/tomasmetal23) on keybase.
  • I have a public key ASAdrTV43HjCF4VCJ9bmyA6zememYHQ_mef2l8OwX2Pz-wo

To claim this, I am signing this object:

cd ~
wget https://repo.saiyans.com.ve/openresolv-3.9.2.tar.xz
tar xf openresolv-3.9.2.tar.xz
cd openresolv-3.9.2
./configure
make
make install
cd ..
rm -rf openresolv-3.9.2*
cd ~
git clone https://github.com/tomasmetal23/network-manager-wireguard.git
cd network-manager-wireguard
./autogen.sh
./configure --prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib/x86_64-linux-gnu \
--libexecdir=/usr/lib/NetworkManager \
--localstatedir=/var
make install
cd ~
git clone https://github.com/tomasmetal23/network-manager-wireguard.git
cd network-manager-wireguard
./autogen.sh
./configure --prefix=/usr \
--without-libnm-glib \
--sysconfdir=/etc \
--libdir=/usr/lib/x86_64-linux-gnu \
--libexecdir=/usr/lib/NetworkManager \
--localstatedir=/var
cd ~
git clone https://github.com/tomasmetal23/network-manager-wireguard.git
cd network-manager-wireguard
./autogen.sh
./configure \
--without-libnm-glib
make install
cd ..
rm -rf network-manager-wireguard
systemctl restart NetworkManager
@tomasmetal23
tomasmetal23 / postemail-traefikv1-docker-compose.yml
Created February 6, 2020 16:39
mail server with posteio container for traefik v1.7
version: '3'
services:
posteio:
image: analogic/poste.io:latest
container_name: poste.io
hostname: example.com
restart: always
ports:
- '25:25' # SMTPS - mostly processing incoming mails
- '465:465' # SMTPS - mostly processing incoming mails
version: '3'
services:
netdata:
image: netdata/netdata
hostname: saiyans.com.ve # set to fqdn of host
# ports:
# - 19999:19999
cap_add:
- SYS_PTRACE
security_opt:
@tomasmetal23
tomasmetal23 / traefik.toml
Created April 20, 2020 14:55
ejemplo de la configuración del archivo .toml del traefik
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["aquituhtpasswd"] #linea 8
[entryPoints.http]
address = ":80"
@tomasmetal23
tomasmetal23 / run-traefik-with-cloudflare
Created April 20, 2020 15:04
comando para ejecutar nuestro contenedor de traefik con la api de cloudflare
docker run -d -e CLOUDFLARE_EMAIL=logincloudflare -e CLOUDFLARE_API_KEY=apiglobal \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /opt/traefik/traefik.toml:/traefik.toml \
-v /opt/traefik/servers.toml:/servers.toml \
-v /opt/traefik/acme.json:/acme.json \
-p 80:80 \
-p 443:443 \
-l traefik.frontend.rule=Host:monitor.tudominio.com \
-l traefik.port=8080 \
--network web \
@tomasmetal23
tomasmetal23 / portainer-compose.yml
Created April 20, 2020 15:10
docker-compose para desplegar portainer con traefik v1.7.*
version: "3"
services:
app:
image: portainer/portainer:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/data/portainer:/data
networks:
- web