This is the API service for the PixelIt project, this provides the bitmaps for the Pixelit.
Use docker-compose
pixelit_api:
restart: unless-stopped
container_name: pixelit_api
image: ghcr.io/pixelit-project/pixelit.api:latest
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
PORT: 8080
TELEMETRY_USER_CHECK: true
MYSQL_HOST: host
MYSQL_DATABASE: database
MYSQL_USER: user
MYSQL_PASSWORD: password
GITHUB_TOKEN: token
API_GLOBAL_LIMIT_WINDOW_MS: 300000
API_GLOBAL_LIMIT_MAX: 100
API_TELEMETRY_LIMIT_WINDOW_MS: 900000
API_TELEMETRY_LIMIT_MAX: 10
API_SAVEBITMAP_LIMIT_WINDOW_MS: 900000
API_SAVEBITMAP_LIMIT_MAX: 10
API_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:5341
SEQ_APIKEY: xxxxxxxxxxxx
Install dependencies with npm install
and run dev server with npn run dev
.
- (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
buildSection
for 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