Nginx monster docker with logging headers

Instruction about build docker nginx with many modules and enable headers logging Dockerfile FROM alpine:3.9.4 LABEL maintainer «a.v.galushko86@gmail.com» ENV COMPILE_DIR /build ENV LIBRESSL_DIR /libressl ENV NB_PROC 4 ARG NGINX_VERSION ENV VERSION_PCRE pcre-8.42 ENV VERSION_LIBRESSL libressl-2.8.2 ENV VERSION_NGINX nginx-$NGINX_VERSION ENV SOURCE_LIBRESSL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/ ENV SOURCE_PCRE https://ftp.pcre.org/pub/pcre/ ENV SOURCE_NGINX http://nginx.org/download/ ENV STATICLIBSSL $LIBRESSL_DIR/$VERSION_LIBRESSL ENV VERSION_NGINX_DEVEL_KIT 0.3.1 ENV VERSION_LUA_NGINX_MODULE […]

Читать далее…

Bluetooth setup audio headphones on ubuntu 18.04

Bluetooth setup audio headphones on ubuntu 18.04 Add epository and upgrade system sudo add-apt-repository ppa:bluetooth/bluez sudo apt-get update sudo apt-get upgrade -y Audio equlaser ubuntu 18.04 sudo apt-get install pulseaudio-equalizer Add modules persist echo «load-module module-equalizer-sink» >> /etc/pulse/default.pa echo «load-module module-dbus-protocol» >> /etc/pulse/default.pa Load modules pactl load-module module-equalizer-sink pactl load-module module-dbus-protocol Run equlaser qpaeq […]

Читать далее…

Docker mount shm(shared memory) with custom size script.

Docker mount shm(shared memory) with custom size script. #!/bin/bash ##USAGE ##Для изменения размера разделяемой памяти в докер контейнере необходимо указать размер в мегабайтах(M) и имя сервиса DOCKER_SERVICE_NAME=»disp» DOCKER_SHM_SIZE=»512M» DOCKER_SERVICE_NAME_ID=$(docker ps | grep ${DOCKER_SERVICE_NAME} | grep -ve ‘exporter’ | awk ‘{print $NF}’) DOCKER_ROOT_DIR=$(docker inspect ${DOCKER_SERVICE_NAME_ID} | grep ‘HostnamePath’ | awk ‘{print $2}’ | tr -d \» […]

Читать далее…

Get ftp file list and get files on ftp via curl

Get ftp file list and get files via curl Bash script for getting all files in chroot dir and get files Create file with user:passwd@ip user1:232323232@217.116.163.35 user2:dsfsfsfsf@217.116.163.35 user3:sfsfsfsf@217.116.163.35 #!/bin/bash TRIC_CONNECTION_FILE=»/docker-compose/scripts/tric_import/tric.list» TRIC_DATA=$(cat ${TRIC_CONNECTION_FILE} | grep -ve ‘^#.*$’ | sed ‘/^\s*$/d’ ) HOME_DIR=»/bup/tric» ftp_get () { while read -r line do FTPUSER=$(echo «$line» | cut -d\: -f1 […]

Читать далее…