Skip to content

Commit

Permalink
feature: renewals for certbot
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcello committed Sep 24, 2024
1 parent ab79a36 commit 6bf7f25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ docker container prune -f
docker run -d \
-p 8082:8080 \
-v $(pwd)/fun_banking.db:/app/fun_banking.db \
-v /var/www/html:/var/www/html \
-e DATABASE_URL=/app/fun_banking.db \
-e GIN_MODE=release \
--name fun_banking_container fun_banking
2 changes: 2 additions & 0 deletions internal/api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package api

import (
"html/template"
"net/http"
"os"
"time"

Expand Down Expand Up @@ -38,6 +39,7 @@ func Start() {
router.LoadHTMLGlob("templates/**/*")
// Load Static Files
router.Static("/static", "public/")
router.StaticFS("/.well-known/acme-challenge", http.Dir("/var/www/html/.well-known/acme-challenge"))
// Middleware
router.Use(middleware.Audit(), middleware.CustomerAudit(), middleware.PreferencesAudit())
// Setup Routes
Expand Down

0 comments on commit 6bf7f25

Please sign in to comment.