chore: add mmdb

This commit is contained in:
Tine 2024-11-05 21:34:22 +01:00
parent 31bed3964b
commit 467d01a61b
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
4 changed files with 9 additions and 17 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 MiB

View file

@ -3,10 +3,8 @@ set -euo pipefail
## ##
# Source Code # Source Code
# We store all initial configs in the /srv location # We store all initial configs in the /srv location
cd /srv cd /srv
# Clone if not yet cloned # Clone if not yet cloned
if [ ! -d .git ]; then if [ ! -d .git ]; then
git clone https://code.tjo.space/tjo-cloud/ingress.git . git clone https://code.tjo.space/tjo-cloud/ingress.git .
@ -30,7 +28,6 @@ apt update -y
apt install -y \ apt install -y \
gpg \ gpg \
git \ git \
webhook \
nginx \ nginx \
nginx-extras \ nginx-extras \
libnginx-mod-http-geoip2 \ libnginx-mod-http-geoip2 \
@ -43,13 +40,9 @@ echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stab
apt update -y apt update -y
apt install -y alloy apt install -y alloy
##
# Copy Sysmtemd service/units
#cp -r root/etc/systemd/* /
## ##
# Ensure services are enabled # Ensure services are enabled
systemctl enable --now nginx webhook alloy systemctl enable --now nginx alloy
## ##
# Configure Alloy # Configure Alloy
@ -70,10 +63,6 @@ systemctl reload alloy
## ##
# Configure NGINX # Configure NGINX
#cp -r root/etc/nginx/* /etc/nginx/ cp assets/dbip-city-lite-2023-07.mmdb /var/geoip.mmdb
cp -r root/etc/nginx/* /etc/nginx/
systemctl reload nginx systemctl reload nginx
##
# Configure Webhook
#cp -r root/etc/webhook/* /etc/webhook/
systemctl restart webhook

View file

@ -66,3 +66,6 @@ provision:
cat install.sh | ssh ubuntu@${NODE} 'sudo bash -s' cat install.sh | ssh ubuntu@${NODE} 'sudo bash -s'
done done
list-servers:
@cd terraform && tofu output -json | jq -r '.nodes.value[]'

View file

@ -1,15 +1,15 @@
user www-data; user www-data;
worker_processes auto; worker_processes auto;
pid /run/nginx.pid; pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf; include /etc/nginx/modules-enabled/*.conf;
error_log syslog:server=unix:/dev/log;
access_log syslog:server=unix:/dev/log combined_host;
events { events {
worker_connections 768; worker_connections 768;
} }
error_log /dev/stderr error;
stream { stream {
# Map of Host -> IP # Map of Host -> IP
# We will route the traffic to this endpoints. # We will route the traffic to this endpoints.