Skip to content

Instantly share code, notes, and snippets.

View shakalandy's full-sized avatar

Andreas Lehr shakalandy

View GitHub Profile
@shakalandy
shakalandy / gist:6d41c18437d96bcafad950e972c6ad10
Created October 12, 2022 08:37
ansible fact collecting nginx vhosts
#!/bin/bash
###############################################
# NGINX FACT
###############################################
if [ -f /usr/sbin/nginx ]; then
VHOSTS=$(nginx -T 2>/dev/null | grep "server_name " | awk '{print $2}' | cut -d ";" -f 1 | grep -v localhost |sort | uniq | grep -v -e '^$')
fi
@shakalandy
shakalandy / jitsu-docker-proxy.txt
Last active May 16, 2022 09:06
jitsu docker with nginx-proxy
docker run \
-d --name jitsu \
--network proxy \
--restart=always \
-p 8000:8000 \
-e REDIS_URL=172.17.0.1 \
-v $PWD/server_logs/:/home/eventnative/data/logs/ \
-v $PWD/configurator_logs/:/home/configurator/data/logs/ \
-v jitsu_workspace:/home/eventnative/data/airbyte \
-v /var/run/docker.sock:/var/run/docker.sock \