diff --git a/Dockerfile b/Dockerfile index 308576c..af24377 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,4 @@ RUN npm install # Package app source COPY . . -# Defaults -ENV EBPORT=3000 -ENV EBPASS=changeme - CMD node db.js; npm start diff --git a/README.md b/README.md index 9e45fae..062a38e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,27 @@ A media host specialized in good looking embeds for services like Discord + + +## Run + +Source: +```Bash +EBPASS=changeme +EBPORT=3000 +EBSECRET=4jkdmakl2l #jwt session secret + +$ npm install +$ node db.js +$ npm start +``` + +Docker +``` +docker build . -t embedder +docker run -d -p "4000:4000" -e EBPORT=4000 -e EBPASS=pass -e EBSECRET=4jkdmakl2l embedder +``` + ## License [The Unlicense](https://opensource.org/licenses/unlicense) diff --git a/views/index.ejs b/views/index.ejs index 59b6da5..a4d51da 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -3,7 +3,7 @@
-