update ip

This commit is contained in:
asyncnomi 2022-12-11 16:53:20 +01:00
parent bb16e2ba21
commit d2cfeb7b82
2 changed files with 7 additions and 2 deletions

View file

@ -4,10 +4,11 @@
1. Requirements:
* Create a bde-list user in sudoers: `useradd -m -s /bin/bash -G sudo bde-list` and connect to it.
* Create a bde-list user in sudoers: `sudo useradd -m -s /bin/bash -G sudo bde-list` and connect to it.
* Install nvm: `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash`
* Install node: `nvm install 18.12.1 && nvm use 18.12.1`
* Install pm2: `npm install pm2 -g`
* Install nginx: `sudo apt-get install nginx`
2. Installation:

View file

@ -42,6 +42,10 @@ fastify.register(require('@fastify/static'), {
decorateReply: false
})
fastify.get('/', async (request, reply) => {
})
fastify.post('/login', async (request, reply) => {
let content = request.body;
if (content.hasOwnProperty("user")
@ -347,7 +351,7 @@ function makeid(length) {
const start = async () => {
try {
await fastify.listen({ port: 3000 })
await fastify.listen({ port: 3000 , host: '0.0.0.0',})
} catch (err) {
fastify.log.error(err)
LDAP.close(function(err) {