Git Product home page Git Product logo

installations's Introduction

Installations

KONG

using docker

DB less mode

docker network create kong-net

Create a volume in the host machine

docker volume create kong-vol

Inspect the volume

docker volume inspect kong-vol

[
 {
     "CreatedAt": "2019-05-28T12:40:09Z",
     "Driver": "local",
     "Labels": {},
     "Mountpoint": "/var/lib/docker/volumes/kong-vol/_data",
     "Name": "kong-vol",
     "Options": {},
     "Scope": "local"
 }
]

Create a configuration file called kong.yml ans ave it inside the mountpoint above. Start kong to listen for traffic at 8000/8443 and for admin at 8001/8444

 docker run -d --name kong \
 --network=kong-net \
 -v "kong-vol:/usr/local/kong/declarative"
 -e "KONG_DATABASE=off" \
 -e "KONG_DECLARATIVE_CONFIG=/usr/local/kong/declarative/kong.yml" \
 -e "KONG_PROXY_ACCESS_LOG=/dev/stdout" \
 -e "KONG_ADMIN_ACCESS_LOG=/dev/stdout" \
 -e "KONG_PROXY_ERROR_LOG=/dev/stderr" \
 -e "KONG_ADMIN_ERROR_LOG=/dev/stderr" \
 -e "KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl" \
 -p 8000:8000 \
 -p 8443:8443 \
 -p 8001:8001 \
 -p 8444:8444 \
 kong:latest

NGINX

How to run multiple sites in nginx.

  1. create folder in /var/www/example.com/html and add html files

    sudo chown -R $USER:$USER /var/www/example.com/html

  2. Copy the default or an existing conf sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/example.com

  3. Changes in the new conf

    1. remove default server from default conf.

      listen 80 default_server;

    2. set alias

      server_name example.com www.example.com;
      
    3. change html root path

      root /var/www/example.com/html;
      
  4. Add symbolic links

    sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/
    
  5. uncomment hashbucket in nginx.conf

    sudo nano /etc/nginx/nginx.conf
    
  6. Restart

    sudo systemctl restart nginx
    

installations's People

Contributors

codetripper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.