* Updated Versioning

This commit is contained in:
Daniel Legt 2022-05-22 20:15:51 +03:00
parent 5414dab201
commit 23fa17b840
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
# 1.1.1
The freepad version has been added as a header to the response
# 1.1.0 # 1.1.0
Implemented a rate-limiting system, quite primitive and basic implementation on my part since it's looking at all requests not just the POST requests, this can be bad news if someone is using the service a ton and won't truly protect from floods as it's ip-based but should offer a level of security better than none. Implemented a rate-limiting system, quite primitive and basic implementation on my part since it's looking at all requests not just the POST requests, this can be bad news if someone is using the service a ton and won't truly protect from floods as it's ip-based but should offer a level of security better than none.

View File

@ -1,6 +1,6 @@
FROM alpine FROM alpine
LABEL version="1.1.0" LABEL version="1.1.1"
# Copy the distribution files # Copy the distribution files
COPY ./dist /app COPY ./dist /app

View File

@ -6,7 +6,7 @@ func ApplyHeaders(router *gin.Engine) {
router.Use(func(ctx *gin.Context) { router.Use(func(ctx *gin.Context) {
// Apply the header // Apply the header
ctx.Header("FreePad-Version", "1.1.0") ctx.Header("FreePad-Version", "1.1.1")
// Move on // Move on
ctx.Next() ctx.Next()