This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name localhost; | |
# SSL configuration | |
# | |
# listen 443 ssl default_server; | |
# listen [::]:443 ssl default_server; | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream nodejs { | |
server localhost:9102; | |
} | |
# HTTP — redirect all traffic to HTTPS | |
server { | |
underscores_in_headers on; | |
listen 80; | |
listen [::]:80 default_server ipv6only=on; | |
server_name senditlocal.io; | |
root /var/www/si/sendit_web/dist/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo bash | |
apt-get update | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
apt-get update | |
apt-cache policy docker-ce | |
apt-get install -y docker-ce | |
docker —version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
import * as nconf from 'nconf'; | |
nconf.argv().env().file({ file: 'config.json' }); | |
import databaseSetup from "../../infrastructure/DatabaseSetup"; | |
import application from "../../application/application"; | |
import { GetIdeasRequest, GetIdeasResponse } from "../../scenarios/GetIdeas"; | |
import { InsertIdeaRequest, InsertIdeaResponse } from "../../scenarios/InsertIdea"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Javascript Node CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | |
# | |
version: 2 | |
jobs: | |
build: | |
branches: | |
only: | |
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSEBDockerrunVersion": 2, | |
"volumes": [{ | |
"name": "mongo-data", | |
"host": { | |
"sourcePath": "./data/db" | |
} | |
}, { | |
"name": "nginx-proxy-config", | |
"host": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the production variant of | |
# docker deployment | |
version: '3' | |
services: | |
#built by master branch | |
<container-name>: | |
image: index.docker.io/<account>/<repo>:master | |
container_name: '<app-name>' | |
ports: | |
- 8000:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the production variant of | |
# docker deployment for litnite | |
version: '3' | |
services: | |
#built by master branch | |
litnite-app: | |
image: index.docker.io/litnite/backend:master | |
container_name: 'litnite' | |
ports: | |
- 3001:3001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Downloading jenkins...." | |
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - | |
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list | |
sudo apt-get update | |
sudo apt-get install jenkins -y | |
echo "Starting jenkins..." | |
sudo systemctl start jenkins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Policy | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets", | |
"s3:PutObject", | |
"s3:GetObject" |
OlderNewer