I hereby claim:
- I am shukriadams on github.
- I am shukriadams (https://keybase.io/shukriadams) on keybase.
- I have a public key whose fingerprint is F089 0BE7 A39A E7B3 3E9C 861C 74A9 6F68 3CBA 80F9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Nginx is perfect for hosting multiple nodejs apps on a single box, and easier to set up than Apache if you're a noob like me. | |
1 - install nginx : | |
sudo apt-get install nginx -y | |
2 - create an nginx config file for your site - you can keep each site's config in its own file | |
sudo gedit /etc/nginx/conf.d/myFirstSite.conf |
# This script starts a simple HTTP server which replies on ":8081/accesspoints", and returns JSON for an array of objects with | |
# describe wifi access points. Works on Python 2.x. | |
# | |
# Packages required : | |
# pip install -Iv flask_restful==0.3.7 | |
from flask import Flask | |
from flask_restful import Api, Resource, reqparse | |
import os | |
import re |
version: "2" | |
services: | |
adminmongo: | |
image: mrvautin/adminmongo:latest | |
container_name: adminmongo | |
restart: unless-stopped | |
ports: | |
- "3112:1234" | |
environment: | |
HOST : 0.0.0.0 |