Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/workflows/test.yml

This file was deleted.

5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20
FROM node:24

LABEL authors="kttrez"
LABEL name="symfi-api"
Expand All @@ -7,10 +7,11 @@ EXPOSE 5000

WORKDIR /usr/src/app

COPY dist ./dist
COPY src ./src
COPY package*.json ./
COPY tsconfig.json ./

RUN npm ci
RUN echo "" > .env

CMD ["npm", "run", "start"]
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ Backend service for the Symfi application.

## Environment Variables

### Main

* `DEBUG`: (`true | undefined`) – debug mode, prints additional logs
* `LOG_REQUESTS`: (`true | undefined`) – log all incoming requests
* `NODE_ENV`: (`'test' | undefined`) – environment to run the server in
* `PORT`: (`number | undefined`) – port to run the server on
* `PROXY_DOWNLOAD_ENABLED`: (`true | undefined`) – enable proxy download
* `PROXY_DOWNLOAD_ORIGIN`: (`string | undefined`) – origin to proxy download
* `PROXY_DOWNLOAD_STREAM_ENDPOINT`: (`true | undefined`) – uses newer "/stream" endpoint for proxy download (requires PROXY_DOWNLOAD_ENABLED)

### API V2, V3

* `PROXY_DOWNLOAD_ENABLED`: (`true | undefined`) – makes the server act as a proxy for downloading audio files
* `PROXY_DOWNLOAD_ORIGIN`: (`string | undefined`) – origin to proxy download, (requires: `PROXY_DOWNLOAD_ENABLED`)

### API V3

* `PROXY_DOWNLOAD_STREAM_ENDPOINT`: (`true | undefined`) – uses newer "/stream" endpoint for proxy download, (requires: `PROXY_DOWNLOAD_ENABLED`)

## License

Expand Down
69 changes: 25 additions & 44 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.4/schema.json",
"assist": {
"actions": {
"source": {
"organizeImports": "on",
"useSortedAttributes": "on",
"useSortedKeys": "on",
"useSortedProperties": "on"
}
},
"enabled": true
},
"files": {
"ignore": ["package.json", "package-lock.json"],
"include": ["**/*.ts", "**/*.json"]
"includes": ["**/*.json", "**/*.ts", "/**/*.tsx"]
},
"formatter": {
"enabled": true,
Expand All @@ -14,59 +24,30 @@
"javascript": {
"formatter": {
"arrowParentheses": "asNeeded",
"enabled": true,
"quoteStyle": "single"
},
"globals": ["afterAll", "beforeAll", "beforeEach", "describe", "expect", "it", "jest"]
}
},
"json": {
"formatter": {
"enabled": true
}
},
"linter": {
"enabled": true,
"rules": {
"complexity": {
"all": true
},
"correctness": {
"all": true,
"noNodejsModules": "off"
},
"nursery": {
"noDoneCallback": "error",
"noDuplicateAtImportRules": "error",
"noDuplicateElseIf": "error",
"noDuplicateFontNames": "error",
"noDuplicateJsonKeys": "error",
"noDuplicateSelectorsKeyframeBlock": "error",
"noEmptyBlock": "error",
"noEvolvingTypes": "error",
"noReactSpecificProps": "error",
"noYodaExpression": "error",
"useConsistentBuiltinInstantiation": "error",
"useDateNow": "error",
"useDefaultSwitchClause": "error",
"useExplicitLengthCheck": "error",
"useImportRestrictions": "error",
"useThrowNewError": "error",
"useThrowOnlyError": "error"
},
"performance": {
"all": true,
"noBarrelFile": "off",
"noReExportAll": "off"
},
"recommended": true,
"security": {
"all": true
},
"style": {
"all": true,
"useFilenamingConvention": "off",
"useNamingConvention": "off"
},
"suspicious": {
"all": true
}
}
},
"organizeImports": {
"enabled": true
"vcs": {
"clientKind": "git",
"defaultBranch": "master",
"enabled": true,
"useIgnoreFile": true
}
}
26 changes: 0 additions & 26 deletions jest.config.ts

This file was deleted.

9 changes: 0 additions & 9 deletions nodemon.json

This file was deleted.

Loading
Loading