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
module.exports = (() => { | |
/** | |
* Map all available handlers to express route. | |
* @type {{handler}|*} | |
*/ | |
const fs = require('fs'); | |
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const bunyan = require('bunyan'); |
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
const server = require(`./src/server`); | |
process.env.NODE_ENV === "DEV" ? | |
/** | |
* If dev environment, run express server for local debugging. | |
*/ | |
server.listen(process.env.PORT || 3000) : | |
/** | |
* Creates a function instance and with a specific specs. |
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
nginx-proxy: | |
image: jwilder/nginx-proxy:latest | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- '/home/docker/nginx-proxy/ssl:/etc/nginx/certs:ro' | |
- '/etc/nginx/vhost.d' | |
- '/usr/share/nginx/html' | |
- '/var/run/docker.sock:/tmp/docker.sock:ro' |
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
### Keybase proof | |
I hereby claim: | |
* I am evilurge on github. | |
* I am evilurge (https://keybase.io/evilurge) on keybase. | |
* I have a public key ASDtn_MWVDpdsa6Did8RWtLKYNqkG3GFXSfaB-OGON0Idwo | |
To claim this, I am signing this object: |
NewerOlder