Improvements + dummy API configs
This commit is contained in:
parent
68eb7b16a8
commit
13eb680272
5
.github/ISSUE_TEMPLATE/config.yml
vendored
5
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -1,8 +1,11 @@
|
|||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: Developer Documentation
|
- name: Fosscord Documentation
|
||||||
url: https://docs.fosscord.com/
|
url: https://docs.fosscord.com/
|
||||||
about: Need documentation and examples for the Fosscord? Head over to Fosscord's official documentation.
|
about: Need documentation and examples for the Fosscord? Head over to Fosscord's official documentation.
|
||||||
|
- name: Discord's Developer Documentation
|
||||||
|
url: https://discord.com/developers/docs/intro
|
||||||
|
about: Need help with the Discord resources? Head here instead of asking on Fosscord!
|
||||||
- name: Fosscord' Official Discord server
|
- name: Fosscord' Official Discord server
|
||||||
url: https://discord.com/invite/Ms5Ev7S6bF
|
url: https://discord.com/invite/Ms5Ev7S6bF
|
||||||
about: Need help with the server? Talk with us in our official server.
|
about: Need help with the server? Talk with us in our official server.
|
20
nginx.conf
Normal file
20
nginx.conf
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# This is an example
|
||||||
|
server {
|
||||||
|
server_name fosscord.example.com;
|
||||||
|
listen 80;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:3001;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_pass_request_headers on;
|
||||||
|
add_header Last-Modified $date_gmt;
|
||||||
|
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||||
|
proxy_no_cache 1;
|
||||||
|
proxy_cache_bypass 1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
}
|
||||||
|
}
|
@ -2,6 +2,7 @@ import { Column, Entity } from "typeorm";
|
|||||||
import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass";
|
import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass";
|
||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
import { Snowflake } from "../util/Snowflake";
|
import { Snowflake } from "../util/Snowflake";
|
||||||
|
import { SessionsReplace } from "..";
|
||||||
|
|
||||||
@Entity("config")
|
@Entity("config")
|
||||||
export class ConfigEntity extends BaseClassWithoutId {
|
export class ConfigEntity extends BaseClassWithoutId {
|
||||||
@ -48,6 +49,11 @@ export interface ConfigValue {
|
|||||||
endpointPublic: string | null;
|
endpointPublic: string | null;
|
||||||
endpointPrivate: string | null;
|
endpointPrivate: string | null;
|
||||||
};
|
};
|
||||||
|
api: {
|
||||||
|
defaultVersion: string;
|
||||||
|
activeVersions: string[];
|
||||||
|
useFosscordEnhancements: boolean;
|
||||||
|
};
|
||||||
general: {
|
general: {
|
||||||
instanceName: string;
|
instanceName: string;
|
||||||
instanceDescription: string | null;
|
instanceDescription: string | null;
|
||||||
@ -175,6 +181,9 @@ export interface ConfigValue {
|
|||||||
},
|
},
|
||||||
client: {
|
client: {
|
||||||
useTestClient: Boolean;
|
useTestClient: Boolean;
|
||||||
|
},
|
||||||
|
metrics: {
|
||||||
|
timeout: number;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,6 +198,11 @@ export const DefaultConfigOptions: ConfigValue = {
|
|||||||
endpointPrivate: null,
|
endpointPrivate: null,
|
||||||
endpointPublic: null,
|
endpointPublic: null,
|
||||||
},
|
},
|
||||||
|
api: {
|
||||||
|
defaultVersion: "9",
|
||||||
|
activeVersions: ["6", "7", "8", "9"],
|
||||||
|
useFosscordEnhancements: true,
|
||||||
|
},
|
||||||
general: {
|
general: {
|
||||||
instanceName: "Fosscord Instance",
|
instanceName: "Fosscord Instance",
|
||||||
instanceDescription: "This is a Fosscord instance made in pre-relase days",
|
instanceDescription: "This is a Fosscord instance made in pre-relase days",
|
||||||
@ -352,5 +366,8 @@ export const DefaultConfigOptions: ConfigValue = {
|
|||||||
},
|
},
|
||||||
client: {
|
client: {
|
||||||
useTestClient: true
|
useTestClient: true
|
||||||
|
},
|
||||||
|
metrics: {
|
||||||
|
timeout: 30000
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user