Desktop app dynamic config of API Port (#40)

* added dynamic configuration of Port in Desktop app
* added dynamic configuration of API_URL to docker deployments.

Now it works with editing only .env file.
This commit is contained in:
Bardioc26
2026-02-27 11:55:30 +01:00
committed by GitHub
parent bb9ef4f77e
commit 261a6294cb
24 changed files with 597 additions and 55 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func SetupGin(r *gin.Engine) {
}
corsConfig = cors.Config{
AllowOrigins: allowedOrigins,
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE"},
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
AllowHeaders: []string{"Origin", "Content-Type", "Authorization"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,