This is the API service for the PixelIt project, this provides the bitmaps for the Pixelit.
Use docker-compose
pixelit_api:
restart: unless-stoppedcontainer_name: pixelit_apiimage: ghcr.io/pixelit-project/pixelit.api:latestvolumes:
- /etc/localtime:/etc/localtime:roenvironment:
PORT: 8080TELEMETRY_USER_CHECK: trueMYSQL_HOST: hostMYSQL_DATABASE: databaseMYSQL_USER: userMYSQL_PASSWORD: passwordGITHUB_TOKEN: tokenAPI_GLOBAL_LIMIT_WINDOW_MS: 300000API_GLOBAL_LIMIT_MAX: 100API_TELEMETRY_LIMIT_WINDOW_MS: 900000API_TELEMETRY_LIMIT_MAX: 10API_SAVEBITMAP_LIMIT_WINDOW_MS: 900000API_SAVEBITMAP_LIMIT_MAX: 10API_GLOBAL_LIMIT_EXCLUDE: "192.168.0.1, 192.168.2.1, 192.168.3.1, ::1"API_TELEMETRY_LIMIT_EXCLUDE: "192.168.0.1, 192.168.2.1, 192.168.3.1, ::1"API_SAVEBITMAP_LIMIT_EXCLUDE: "192.168.0.1, 192.168.2.1, 192.168.3.1, ::1"SEQ_SERVER: http://seqserver:5341SEQ_APIKEY: xxxxxxxxxxxxInstall dependencies with npm install and run dev server with npn run dev.
- (o0shojo0o) added new api endpoint
getBMPByID_v2for better handling of animated bitmaps
- (o0shojo0o) add uuid to each request
- (o0shojo0o) change node from 20 to 21
- (o0shojo0o) update dependencies
- (o0shojo0o) Build statistics revised
- (o0shojo0o) Version statistics revised
- (o0shojo0o) small fixes
- (o0shojo0o) only active telemetry users can see statistics
- (o0shojo0o) added ENV param
TELEMETRY_USER_CHECK
- (o0shojo0o) small fixes
- (o0shojo0o) added more statistics to endpoint
Statistics
- (o0shojo0o) added new api endpoint
Statistics
- (o0shojo0o) added
buildSectionfor endpointTelemetry
- (o0shojo0o) added ENV param
API_SAVEBITMAP_LIMIT_EXCLUDE
- (o0shojo0o) fix endpoint
SaveBitmap
- (o0shojo0o) small fixes
- (o0shojo0o) added new api endpoint
SaveBitmap
- (o0shojo0o) added environment variable
API_GLOBAL_LIMIT_EXCLUDE - (o0shojo0o) added environment variable
API_TELEMETRY_LIMIT_EXCLUDE
- (o0shojo0o) fix rate limit key
- (o0shojo0o) added environment variable
API_GLOBAL_LIMIT_WINDOW_MS - (o0shojo0o) added environment variable
API_GLOBAL_LIMIT_MAX - (o0shojo0o) added environment variable
API_TELEMETRY_LIMIT_WINDOW_MS - (o0shojo0o) added environment variable
API_TELEMETRY_LIMIT_MAX - (o0shojo0o) added environment variable
API_TELEMETRY_LIMIT_MAX - (o0shojo0o) enrich log with rate limit data
- (o0shojo0o) added .env file support
- (o0shojo0o) added rate limits
- (o0shojo0o) no prereleases for releases statistics, information, etc. not considered.
- (o0shojo0o) fix id check
- (o0shojo0o) inital commit