Add Ubuntu deployment: scripts, SSL, systemd and setup.sh

This commit is contained in:
shop
2026-06-25 16:47:01 +03:00
parent ee5688f722
commit 8a7f79a70c
19 changed files with 387 additions and 58 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ import (
"shop/internal/config"
"shop/internal/database"
"shop/internal/handlers"
"shop/internal/middleware"
"shop/internal/repository"
)
@@ -63,7 +64,7 @@ func main() {
addr := ":" + getEnv("APP_PORT", "8080")
srv := &http.Server{
Addr: addr,
Handler: mux,
Handler: middleware.TrustProxy(mux),
ReadTimeout: 10 * time.Second,
WriteTimeout: 30 * time.Second,
IdleTimeout: 60 * time.Second,