api: remove API_NAME env variable & from server info

This commit is contained in:
wukko 2024-08-02 21:33:59 +06:00
parent 2575b0c145
commit 012fadd2f0
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 0 additions and 2 deletions

View file

@ -32,7 +32,6 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
version: version, version: version,
commit: gitCommit, commit: gitCommit,
branch: gitBranch, branch: gitBranch,
name: env.apiName,
url: env.apiURL, url: env.apiURL,
cors: Number(env.corsWildcard), cors: Number(env.corsWildcard),
startTime: `${startTimestamp}` startTime: `${startTimestamp}`

View file

@ -26,7 +26,6 @@ export const
env = { env = {
apiURL: process.env.API_URL || '', apiURL: process.env.API_URL || '',
apiPort: process.env.API_PORT || 9000, apiPort: process.env.API_PORT || 9000,
apiName: process.env.API_NAME || 'unknown',
listenAddress: process.env.API_LISTEN_ADDRESS, listenAddress: process.env.API_LISTEN_ADDRESS,
freebindCIDR: process.platform === 'linux' && process.env.FREEBIND_CIDR, freebindCIDR: process.platform === 'linux' && process.env.FREEBIND_CIDR,