From 14f2802ad31d268a37b6b6ce89bbf9f50c1b09b9 Mon Sep 17 00:00:00 2001 From: sp Date: Sun, 28 Mar 2021 04:26:31 +1100 Subject: [PATCH] added uploads directory. --- .gitignore | 1 + config.go | 1 + config.json | 1 + 3 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index f60611d..5c5050a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /apiv1 +/uploads/ diff --git a/config.go b/config.go index 9e8f1f3..802c86a 100644 --- a/config.go +++ b/config.go @@ -21,6 +21,7 @@ type configuration struct { TlsKey string Static []configStaticHtml Debug bool + Uploads string Session struct { //TODO: figure what is this intended for Guest bool Year int //how many years diff --git a/config.json b/config.json index 34b00d2..80797ba 100644 --- a/config.json +++ b/config.json @@ -5,6 +5,7 @@ "TlsCert": "/home/sp/go/src/fullchain.pem", "TlsKey": "/home/sp/go/src/privkey.pem", "Debug": true, + "Uploads": "./uploads/", "Static": [ { "Dir": "./html/",