Page 1 of 1

nginx

Posted: Sat Jan 08, 2022 2:47 pm
by Stevyn
https://nginx.org/

install

Code: Select all

apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring

curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
    | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
    
 echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
    | sudo tee /etc/apt/sources.list.d/nginx.list
    
echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
    | sudo tee /etc/apt/preferences.d/99nginx
    
 apt install nginx   
    

Re: nginx

Posted: Sat Jan 08, 2022 2:49 pm
by Stevyn
geoip2
https://github.com/leev/ngx_http_geoip2_module
https://medium.com/@maxime.durand.54/ad ... b56e015763
https://dev.to/rdamrong/how-to-compile- ... 4-lts-5geb

Code: Select all

add-apt-repository ppa:maxmind/ppa
apt update

apt install geoipupdate 
apt install libmaxminddb0 libmaxminddb-dev mmdb-bin build-essential libpcre3-dev zlib1g-dev libssl-dev libxml2-dev libxslt-dev libgd-dev
add account info in

Code: Select all

/etc/GeoIP.conf 
DatabaseDirectory /usr/share/GeoIP

then update

Code: Select all

geoipupdate

Re: nginx

Posted: Sun Jan 09, 2022 1:15 pm
by Stevyn