mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 04:32:35 +01:00
📝 updated links to fosscord-server
This commit is contained in:
parent
eebe4d14b2
commit
1cf781e254
@ -1,7 +1,7 @@
|
||||
FROM node:lts-alpine
|
||||
# needed for native packages (bcrypt, canvas)
|
||||
RUN apk add --no-cache make gcc g++ python cairo-dev jpeg-dev pango-dev giflib-dev
|
||||
WORKDIR /usr/src/fosscord-api
|
||||
WORKDIR /usr/src/fosscord-server
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
RUN npm rebuild bcrypt --build-from-source && npm install canvas --build-from-source
|
||||
|
@ -14,7 +14,7 @@
|
||||
</a>
|
||||
</p>
|
||||
|
||||
## [About](https://github.com/fosscord/fosscord-api/wiki)
|
||||
## [About](https://github.com/fosscord/fosscord-server/wiki)
|
||||
|
||||
This repository contains the Fosscord HTTP API Server
|
||||
|
||||
@ -43,8 +43,8 @@ and the other technologies we use
|
||||
Clone the Repository:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/fosscord/fosscord-api
|
||||
cd discord-server
|
||||
git clone https://github.com/fosscord/fosscord-server
|
||||
cd fosscord-server
|
||||
```
|
||||
|
||||
#### Install (dev)dependencies:
|
||||
|
@ -12,18 +12,16 @@
|
||||
"start": "npm run build && node dist/start",
|
||||
"build": "tsc -b .",
|
||||
"build-docker": "tsc -p tsconfig-docker.json",
|
||||
"dev": "tsnd --respawn src/start.ts",
|
||||
"bundle:macos": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-api.app' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-api-macos.app.tgz' 'fosscord-api.app'",
|
||||
"bundle:linux": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-api-linux.tgz' 'fosscord'",
|
||||
"bundle:windows": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-api-windows.exe' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'"
|
||||
"dev": "tsnd --respawn src/start.ts"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/fosscord/fosscord-api.git"
|
||||
"url": "git+https://github.com/fosscord/fosscord-server.git"
|
||||
},
|
||||
"keywords": [
|
||||
"discord",
|
||||
"fosscord",
|
||||
"fosscord-server",
|
||||
"fosscord-api",
|
||||
"discord open source",
|
||||
"discord-open-source"
|
||||
@ -31,9 +29,9 @@
|
||||
"author": "Fosscord",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/fosscord/fosscord-api/issues"
|
||||
"url": "https://github.com/fosscord/fosscord-server/issues"
|
||||
},
|
||||
"homepage": "https://github.com/fosscord/fosscord-api#readme",
|
||||
"homepage": "https://fosscord.com",
|
||||
"dependencies": {
|
||||
"@fosscord/util": "file:../util",
|
||||
"@types/jest": "^26.0.22",
|
||||
|
8
bundle/package-lock.json
generated
8
bundle/package-lock.json
generated
@ -34,7 +34,6 @@
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@fosscord/server-util": "^1.3.52",
|
||||
"@fosscord/util": "file:../util",
|
||||
"@types/jest": "^26.0.22",
|
||||
"@types/json-schema": "^7.0.7",
|
||||
@ -92,7 +91,6 @@
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@fosscord/server-util": "^1.3.42",
|
||||
"@fosscord/util": "file:../util",
|
||||
"body-parser": "^1.19.0",
|
||||
"btoa": "^1.2.1",
|
||||
@ -129,7 +127,6 @@
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@fosscord/server-util": "^1.3.51",
|
||||
"@fosscord/util": "file:../util",
|
||||
"ajv": "^8.5.0",
|
||||
"amqplib": "^0.8.0",
|
||||
@ -155,7 +152,7 @@
|
||||
},
|
||||
"../util": {
|
||||
"name": "@fosscord/util",
|
||||
"version": "1.3.52",
|
||||
"version": "1.3.55",
|
||||
"license": "GPLV3",
|
||||
"dependencies": {
|
||||
"@types/jsonwebtoken": "^8.5.0",
|
||||
@ -1583,7 +1580,6 @@
|
||||
"@fosscord/api": {
|
||||
"version": "file:../api",
|
||||
"requires": {
|
||||
"@fosscord/server-util": "^1.3.52",
|
||||
"@fosscord/util": "file:../util",
|
||||
"@types/amqplib": "^0.8.1",
|
||||
"@types/bcrypt": "^5.0.0",
|
||||
@ -1636,7 +1632,6 @@
|
||||
"@fosscord/cdn": {
|
||||
"version": "file:../cdn",
|
||||
"requires": {
|
||||
"@fosscord/server-util": "^1.3.42",
|
||||
"@fosscord/util": "file:../util",
|
||||
"@types/body-parser": "^1.19.0",
|
||||
"@types/btoa": "^1.2.3",
|
||||
@ -1668,7 +1663,6 @@
|
||||
"@fosscord/gateway": {
|
||||
"version": "file:../gateway",
|
||||
"requires": {
|
||||
"@fosscord/server-util": "^1.3.51",
|
||||
"@fosscord/util": "file:../util",
|
||||
"@types/amqplib": "^0.8.1",
|
||||
"@types/jsonwebtoken": "^8.5.0",
|
||||
|
@ -12,15 +12,15 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/fosscord/fosscord-api.git"
|
||||
"url": "git+https://github.com/fosscord/fosscord-server.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Fosscord",
|
||||
"license": "AGPLV3",
|
||||
"bugs": {
|
||||
"url": "https://github.com/fosscord/fosscord-api/issues"
|
||||
"url": "https://github.com/fosscord/fosscord-server/issues"
|
||||
},
|
||||
"homepage": "https://github.com/fosscord/fosscord-api#readme",
|
||||
"homepage": "https://fosscord.com",
|
||||
"devDependencies": {
|
||||
"@types/async-exit-hook": "^2.0.0",
|
||||
"@types/express": "^4.17.13",
|
||||
|
@ -6,7 +6,8 @@ import os from "os";
|
||||
import osu from "node-os-utils";
|
||||
import exitHook from "async-exit-hook";
|
||||
|
||||
const cores = Number(process.env.threads) || 1 || os.cpus().length;
|
||||
// TODO: add tcp socket event transmission
|
||||
const cores = 1 || Number(process.env.threads) || os.cpus().length;
|
||||
|
||||
if (cluster.isMaster && !process.env.masterStarted) {
|
||||
const dbPath = path.join(__dirname, "..", "..", "db");
|
||||
|
33
package.json
33
package.json
@ -1,33 +0,0 @@
|
||||
{
|
||||
"name": "fosscord-server",
|
||||
"version": "1.3.52",
|
||||
"description": "Fosscord server",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "tsc -b .",
|
||||
"prepublish": "npm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/fosscord/fosscord-server.git"
|
||||
},
|
||||
"keywords": [
|
||||
"discord",
|
||||
"fosscord",
|
||||
"fosscord-server-util",
|
||||
"discord open source",
|
||||
"discord-open-source"
|
||||
],
|
||||
"author": "Fosscord",
|
||||
"license": "GPLV3",
|
||||
"bugs": {
|
||||
"url": "https://github.com/fosscord/fosscord-server/issues"
|
||||
},
|
||||
"homepage": "https://docs.fosscord.com/",
|
||||
"dependencies": {
|
||||
"@fosscord/api": "file:api",
|
||||
"@fosscord/cdn": "file:cdn",
|
||||
"@fosscord/gateway": "file:gateway"
|
||||
}
|
||||
}
|
@ -18,7 +18,7 @@
|
||||
|
||||
Fosscord is a free open source selfhostable chat, voice and video discord-compatible platform.
|
||||
|
||||
Fosscord server util contains all necessary logic that is shared between the [api](https://github.com/fosscord/fosscord-api), [gateway](https://github.com/fosscord/fosscord-gateway) and [cdn](https://github.com/fosscord/fosscord-cdn).
|
||||
Fosscord server util contains all necessary logic that is shared between the [api](https://github.com/fosscord/fosscord-server/tree/master/api), [gateway](https://github.com/fosscord/fosscord-server/tree/master/gateway) and [cdn](https://github.com/fosscord/fosscord-server/tree/master/cdn).
|
||||
|
||||
It contains all mongoose database models and utility functions.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user