sun-pc-linux 6 months ago
parent
commit
31d7491e7b
2 changed files with 1 additions and 16 deletions
  1. 0 15
      pack-scnict/nginx/conf.d/cr.conf
  2. 1 1
      scnict/src/api/nict.go

+ 0 - 15
pack-scnict/nginx/conf.d/cr.conf

@@ -1,15 +0,0 @@
-# server{
-#     listen 80;
-#     listen [::]:80;
-#     server_name localhost;
-
-#     location /projects/ {
-#         proxy_pass http://127.0.0.1:8085/;
-#         proxy_set_header Host $host:$server_port; #远程主机 IP:PORT
-#         proxy_set_header X-Real-PORT $remote_port; #远程端口
-#         proxy_set_header X-Real-IP $remote_addr; #远程地址
-#         proxy_set_header X-Forwarded-For $remote_addr; #远程真实地址     
-#     }
-
-
-# }

+ 1 - 1
scnict/src/api/nict.go

@@ -17,7 +17,7 @@ func CreateNictRouter(router *GinRouter) {
 
 	// dir test/aaa
 	// file xxx.png
-	router.POST("/upload", func(c *gin.Context, apictx *ApiSession) (interface{}, error) {
+	router.POSTJWT("/upload", func(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 		dir := c.PostForm("dir")
 		file, err := c.FormFile("file")
 		if err != nil {