Folder rename

This commit is contained in:
Jack
2023-08-31 20:23:49 +01:00
parent 69abdd83d6
commit b75bd70326
5 changed files with 11 additions and 7 deletions

58
VPS/docker-compose.yml Normal file
View File

@@ -0,0 +1,58 @@
version: '3'
networks:
default:
enable_ipv6: true
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "true"
ipam:
driver: default
config:
- subnet: fd00:0:0:1:3::/64
gateway: fd00:0:0:1:3::1
- subnet: 172.18.0.0/16
gateway: 172.18.0.1
services:
ipv6nat:
container_name: ipv6nat
restart: unless-stopped
image: robbertkl/ipv6nat
privileged: true
network_mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /lib/modules:/lib/modules:ro
nginx-proxy-manager:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
container_name: mainstack-nginxproxymanager
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx-proxy-manager/data:/data
- ./nginx-proxy-manager/letsencrypt:/etc/letsencrypt
networks:
default:
ipv6_address: "fd00:0:0:1:3::2"
depends_on:
- uptime-kuma
- boris-uptime-koom
uptime-kuma:
image: louislam/uptime-kuma:latest
container_name: uptime-kuma
restart: unless-stopped
volumes:
- ./uptime-kuma:/app/data
networks:
default:
ipv6_address: "fd00:0:0:1:3::3"
telegraf:
restart: unless-stopped
image: telegraf:latest
container_name: telegraf
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf

10
VPS/homeaccesswg.conf Normal file
View File

@@ -0,0 +1,10 @@
[Interface]
PrivateKey =
Address = 172.16.16.6/32
#DNS = 172.16.16.1
[Peer]
PublicKey =
AllowedIPs = 172.16.16.0/24, 192.168.5.0/24, 192.168.6.0/24, 192.168.11.0/30, 192.168.10.0/30
PersistentKeepalive = 25
Endpoint = router.internal.tgj.services:51830

12
VPS/readme.md Normal file
View File

@@ -0,0 +1,12 @@
* Configs from vps.tgj.services runs uptime kuma https://status.tgj.services and telegraf to collect ping data https://tgj.services/graph/goto/hnhB7DkIR?orgId=1
* Server is a small one core system provided by a friend who runs a hosting provider Gets IPV6 from a huricane electric runnel, Also contains a wireguard tunnel to my house for internal service monitoring
```
flowchart TD
A[VPS] -->|| B(Docker compose)
B --> C{Status Pages/Pings}
C -->|Outgoing traffic|
C -->|IPv6 Tunnel| D[tunnelbroker.net]
C -->|IPv4| E[Datacenter Network]
```

30
VPS/telegraf.conf Normal file
View File

@@ -0,0 +1,30 @@
# Configuration for telegraf agent
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = "TGJ-UK"
omit_hostname = false
[[outputs.influxdb_v2]]
urls = ["https://influx.db.tgj.services"]
token = "<mytoken>"
organization = "TGJ "
bucket = "pings"
[[inputs.ping]]
interval = '5s'
# urls = ['router.internal.tgj.services','thatguyjack.co.uk','google.com','mail.uk.tgj.services','borishub.co.uk','luke.tgj.services','1.1.1.1','router.internal.borishub.co.uk','router.internal.swittcorp.net','router.internal.iwouldntdownloadacar.co.uk','2a12:bec0:210::1','2a12:bec0:212::1','2a12:bec0:213::1','2a12:bec0:214::1','2a12:bec0:215::1','2a12:bec0:216::1','2a12:bec0:21d::1','2a12:bec0:219::1','2a12:bec0:218::1','2a12:bec0:210:2::2', '2a12:bec0:210:3::2', '2a12:bec0:210:5::2', '2a12:bec0:210:4::2','149.18.80.30','149.18.80.31','149.18.80.32','149.18.80.33','149.18.80.35','149.18.80.36','149.18.80.37','149.18.80.38','149.18.80.39']
urls = ['router.internal.tgj.services','thatguyjack.co.uk','google.com','mail.uk.tgj.services','borishub.co.uk','luke.tgj.services','1.1.1.1','router.internal.borishub.co.uk','router.internal.swittcorp.net','router.internal.iwouldntdownloadacar.co.uk','2a12:bec0:210::1','2a12:bec0:212::1','2a12:bec0:213::1','2a12:bec0:214::1','2a12:bec0:215::1','2a12:bec0:216::1','2a12:bec0:21d::1','2a12:bec0:219::1','2a12:bec0:218::1','2a12:bec0:210:2::2', '2a12:bec0:210:3::2', '2a12:bec0:210:5::2', '2a12:bec0:210:4::2','149.18.80.30','149.18.80.31','149.18.80.32','149.18.80.33','149.18.80.35','149.18.80.36','149.18.80.37','149.18.80.38','149.18.80.39','45.61.173.144','45.61.173.145','45.61.173.146','45.61.173.147','45.61.173.148','45.61.173.149','45.61.173.150','45.61.173.151','45.61.173.152','45.61.173.153']
count = 1
ping_interval = 1.0
timeout = 3.0
deadline = 3