@ -1,4 +1,4 @@
receive-files
ksat-mrsb
.idea
@ -7,8 +7,8 @@ RUN mkdir "/app/config"
RUN mkdir "/app/log"
RUN mkdir "/app/upload"
COPY receive-files "/app/receive-files"
COPY ksat-mrsb "/app/ksat-mrsb"
EXPOSE 7201
ENTRYPOINT ["./receive-files"]
ENTRYPOINT ["./ksat-mrsb"]
@ -1,6 +1,6 @@
package global
import "receive-files/config"
import "ksat-mrsb/config"
var (
GLO_CONFIG config.Config
module receive-files
module ksat-mrsb
go 1.18
@ -3,14 +3,13 @@ package main
import (
log "github.com/sirupsen/logrus"
"gopkg.in/natefinch/lumberjack.v2"
"ksat-mrsb/config"
"ksat-mrsb/global"
"ksat-mrsb/serve"
"net/http"
"os"
"receive-files/config"
"receive-files/global"
"receive-files/serve"
)
// TODO: 程序退出 关闭日志
func init() {
// 初始化日志
logger := &lumberjack.Logger{
@ -6,9 +6,9 @@ import (
"errors"
"fmt"
"io/ioutil"
"ksat-mrsb/model"
"net/url"
"receive-files/model"
"strings"
@ -12,11 +12,11 @@ import (
_ "image/png"
"io"
"ksat-mrsb/serve/core"
"ksat-mrsb/util"
"receive-files/serve/core"
"receive-files/util"
"strconv"
"time"
"github.com/fsnotify/fsnotify"
//