This commit is contained in:
anarch3 2022-11-13 04:32:48 -05:00
parent 67522d3a4e
commit 39d198cfd5
4 changed files with 24 additions and 7 deletions

View file

@ -10,8 +10,4 @@ RUN npm install
# Package app source
COPY . .
# Defaults
ENV EBPORT=3000
ENV EBPASS=changeme
CMD node db.js; npm start

View file

@ -2,6 +2,27 @@
A media host specialized in good looking embeds for services like Discord
![Imgur Image](https://i.imgur.com/prEZnmT.mp4)
## 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)

View file

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Express • TodoMVC</title>
<title>Embedder</title>
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/css/app.css">

View file

@ -3,14 +3,14 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Express • TodoMVC</title>
<title>Embedder</title>
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/css/login.css">
</head>
<body>
<section class="prompt">
<h3>todos</h3>
<h3>Embedder</h3>
<h1>Sign in</h1>
<form action="/login/password" method="post">
<section>