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
# We store all initial configs in the /srv location
cd /srv
# Clone if not yet cloned
if [ ! -d .git ]; then
git clone https://code.tjo.space/tjo-cloud/ingress.git .
@ -30,7 +28,6 @@ apt update -y
apt install -y \
gpg \
git \
webhook \
nginx \
nginx-extras \
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 install -y alloy
##
# Copy Sysmtemd service/units
#cp -r root/etc/systemd/* /
##
# Ensure services are enabled
systemctl enable --now nginx webhook alloy
systemctl enable --now nginx alloy
##
# Configure Alloy
@ -70,10 +63,6 @@ systemctl reload alloy
##
# 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
##
# 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'
done
list-servers:
@cd terraform && tofu output -json | jq -r '.nodes.value[]'

View file

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