mirror of
https://github.com/Damillora/Fuyuko
synced 2024-11-24 05:57:33 +00:00
Add dotenv
This commit is contained in:
parent
e562868f2a
commit
4d451a4515
3
.env.example
Normal file
3
.env.example
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
TLS_CERT_PATH=
|
||||||
|
TLS_KEY_PATH=
|
||||||
|
DOCUMENT_ROOT=
|
1
index.js
1
index.js
@ -1,6 +1,7 @@
|
|||||||
const {createServer, DEFAULT_PORT} = require('@derhuerst/gemini')
|
const {createServer, DEFAULT_PORT} = require('@derhuerst/gemini')
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
|
require('dotenv').config()
|
||||||
// handlers
|
// handlers
|
||||||
var fileServer = require("./handlers/fileServer");
|
var fileServer = require("./handlers/fileServer");
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
"private": false,
|
"private": false,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@derhuerst/gemini": "^1.1.1",
|
"@derhuerst/gemini": "^1.1.1",
|
||||||
|
"dotenv": "^8.2.0",
|
||||||
"mime-types": "^2.1.28"
|
"mime-types": "^2.1.28"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,11 @@ debug@^4.1.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
ms "2.1.2"
|
ms "2.1.2"
|
||||||
|
|
||||||
|
dotenv@^8.2.0:
|
||||||
|
version "8.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
|
||||||
|
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
|
||||||
|
|
||||||
es6-promisify@^6.0.0:
|
es6-promisify@^6.0.0:
|
||||||
version "6.1.1"
|
version "6.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-6.1.1.tgz#46837651b7b06bf6fff893d03f29393668d01621"
|
resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-6.1.1.tgz#46837651b7b06bf6fff893d03f29393668d01621"
|
||||||
|
Loading…
Reference in New Issue
Block a user