Add Ubuntu deployment: scripts, SSL, systemd and setup.sh
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user