diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index f7a0b4d..80733ad 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -10,6 +10,7 @@ jobs: - uses: actions/setup-node@v3 - name: Install dependencies run: npm install + deploy: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index c0c2a0d..bcfc1e6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ npm-debug.log* .DS_Store .idea/ bun.lockdb +.devcontainer/devcontainer.json diff --git a/index.mjs b/index.mjs index 49b4720..66f142c 100644 --- a/index.mjs +++ b/index.mjs @@ -3,6 +3,7 @@ import { Server } from '@hocuspocus/server'; import * as Sentry from "@sentry/node"; const port = process.env.PORT || 4000; + const authorizer = new Authorizer({ clientID: process.env.AUTHORIZER_CLIENT_ID || '', authorizerURL: process.env.AUTHORIZER_URL || 'https://auth.discours.io', @@ -14,7 +15,6 @@ Sentry.init({ dsn: process.env.GLITCHTIP_DSN }); const startServer = async () => { const server = await Server.configure({ - port: process.env.PORT || 4000, async onConnect({ connection }) { connection.requiresAuthentication = true; },