Skip to content

Commit

Permalink
Provide pre-configured .env file out of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickSachs committed Mar 6, 2019
1 parent 26a0286 commit 27b39d5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .env
@@ -0,0 +1,23 @@
# The database URIs. Contains authentication.
# See https://mongoosejs.com/docs/connections.html#connections for details.
DB="mongodb://localhost/helios"
DB_OPTS="{"useNewUrlParser": true}"

# The ports to run Helios on. (Set HTTP to -1 to not not listen to HTTP at all -
# HSTS recommended in this case)
PORT_HTTP=80
PORT_HTTPS=443

# CURRENTLY NOT USED! - https://git.coolaj86.com/coolaj86/greenlock-express.js/issues/26
BIND_IP="0.0.0.0"

# Host on these domains. The first domain will be your primary, canonical URL.
# Helios will only issue a certificate valid for these domains.
BIND_DOMAINS="localhost"

SSL="none"
AGREE_GREENLOCK_TOS=false

MAIL="webmaster@localhost.local"

# TODO: Some sort of canonical port for NAT?
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -5,4 +5,4 @@ node_modules
# Ignore config files, certs, ...
config/**/
config/style.sass
.env
.env.local
6 changes: 5 additions & 1 deletion server/index.js
@@ -1,4 +1,8 @@
const dotenv = require("dotenv").config();
// Invert env varibles first
const dotenv = require("dotenv");
dotenv.config({ path: ".env.local" });
dotenv.config({ path: ".env" });
// Load libraries
const log = require("./log");
const axios = require("axios");
const path = require("path");
Expand Down

0 comments on commit 27b39d5

Please sign in to comment.