mirror of
https://github.com/fosrl/pangolin.git
synced 2025-05-12 21:30:35 +01:00
Updates
This commit is contained in:
parent
a410abfaba
commit
6f7faf9b72
4 changed files with 12 additions and 7 deletions
5
Makefile
5
Makefile
|
@ -5,7 +5,10 @@ build-arm:
|
|||
docker buildx build --platform linux/arm64 -t fossorial/pangolin:latest .
|
||||
|
||||
build-x86:
|
||||
docker buildx build --platform linux/amd64 -t fossorial/pangolin:latest .
|
||||
docker buildx build --platform linux/amd64 -t fossorial/pangolin:latest .
|
||||
|
||||
build:
|
||||
docker build -t fossorial/pangolin:latest .
|
||||
|
||||
push:
|
||||
docker push fossorial/pangolin:latest
|
||||
|
|
|
@ -21,10 +21,10 @@ badger:
|
|||
|
||||
gerbil:
|
||||
start_port: 51820
|
||||
base_endpoint: localhost
|
||||
base_endpoint: 127.0.0.1
|
||||
use_subdomain: false
|
||||
block_size: 16
|
||||
subnet_group: 10.0.0.0/8
|
||||
use_subdomain: true
|
||||
|
||||
rate_limit:
|
||||
window_minutes: 1
|
||||
|
@ -36,3 +36,6 @@ email:
|
|||
smtp_user: no-reply@example.io
|
||||
smtp_pass: aaaaaaaaaaaaaaaaaa
|
||||
no_reply: no-reply@example.io
|
||||
|
||||
flags:
|
||||
require_email_verification: true
|
|
@ -8,10 +8,7 @@ import createHttpError from "http-errors";
|
|||
import response from "@server/utils/response";
|
||||
import { SqliteError } from "better-sqlite3";
|
||||
import moment from "moment";
|
||||
import {
|
||||
generateId,
|
||||
generateSessionToken,
|
||||
} from "@server/auth";
|
||||
import { generateSessionToken } from "@server/auth";
|
||||
import { createNewtSession } from "@server/auth/newt";
|
||||
import { fromError } from "zod-validation-error";
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ import logger from "@server/logger";
|
|||
export const handleRegisterMessage: MessageHandler = async (context) => {
|
||||
const { message, newt, sendToClient } = context;
|
||||
|
||||
logger.info("Handling register message!");
|
||||
|
||||
if (!newt) {
|
||||
logger.warn("Newt not found");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue