mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 15:09:39 +02: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 .
|
docker buildx build --platform linux/arm64 -t fossorial/pangolin:latest .
|
||||||
|
|
||||||
build-x86:
|
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:
|
push:
|
||||||
docker push fossorial/pangolin:latest
|
docker push fossorial/pangolin:latest
|
||||||
|
|
|
@ -21,10 +21,10 @@ badger:
|
||||||
|
|
||||||
gerbil:
|
gerbil:
|
||||||
start_port: 51820
|
start_port: 51820
|
||||||
base_endpoint: localhost
|
base_endpoint: 127.0.0.1
|
||||||
|
use_subdomain: false
|
||||||
block_size: 16
|
block_size: 16
|
||||||
subnet_group: 10.0.0.0/8
|
subnet_group: 10.0.0.0/8
|
||||||
use_subdomain: true
|
|
||||||
|
|
||||||
rate_limit:
|
rate_limit:
|
||||||
window_minutes: 1
|
window_minutes: 1
|
||||||
|
@ -36,3 +36,6 @@ email:
|
||||||
smtp_user: no-reply@example.io
|
smtp_user: no-reply@example.io
|
||||||
smtp_pass: aaaaaaaaaaaaaaaaaa
|
smtp_pass: aaaaaaaaaaaaaaaaaa
|
||||||
no_reply: no-reply@example.io
|
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 response from "@server/utils/response";
|
||||||
import { SqliteError } from "better-sqlite3";
|
import { SqliteError } from "better-sqlite3";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import {
|
import { generateSessionToken } from "@server/auth";
|
||||||
generateId,
|
|
||||||
generateSessionToken,
|
|
||||||
} from "@server/auth";
|
|
||||||
import { createNewtSession } from "@server/auth/newt";
|
import { createNewtSession } from "@server/auth/newt";
|
||||||
import { fromError } from "zod-validation-error";
|
import { fromError } from "zod-validation-error";
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@ import logger from "@server/logger";
|
||||||
export const handleRegisterMessage: MessageHandler = async (context) => {
|
export const handleRegisterMessage: MessageHandler = async (context) => {
|
||||||
const { message, newt, sendToClient } = context;
|
const { message, newt, sendToClient } = context;
|
||||||
|
|
||||||
|
logger.info("Handling register message!");
|
||||||
|
|
||||||
if (!newt) {
|
if (!newt) {
|
||||||
logger.warn("Newt not found");
|
logger.warn("Newt not found");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue