| @@ -54,3 +54,16 @@ | |||||
| > * 必须参数: tableId 表ID | > * 必须参数: tableId 表ID | ||||
| > * 可选参数: fileType 额外类型 | > * 可选参数: fileType 额外类型 | ||||
| > * 重定向到: `{remote_host}`/file/common/attach, 对应`{remote_host}`/common/attach | > * 重定向到: `{remote_host}`/file/common/attach, 对应`{remote_host}`/common/attach | ||||
| > 客户服务器nginx配置代理 | |||||
| ``` | |||||
| location /file_server { | |||||
| proxy_set_header Host $http_host; | |||||
| proxy_set_header X-Real-IP $remote_addr; | |||||
| proxy_set_header REMOTE-HOST $remote_addr; | |||||
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |||||
| rewrite ^/file_server/(.*)$ /$1 break; | |||||
| proxy_pass http://localhost:8077; | |||||
| } | |||||
| ``` | |||||
| @@ -9,7 +9,7 @@ ruoyi: | |||||
| # 实例演示开关 | # 实例演示开关 | ||||
| demoEnabled: true | demoEnabled: true | ||||
| # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ronxin/uploadPath) | # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ronxin/uploadPath) | ||||
| profile: D:/NsgkSoft/files/nsgk/uploadPath | |||||
| profile: D:/NsgkSoft/files/nsgk_file_transfer/uploadPath | |||||
| # 获取ip地址开关 | # 获取ip地址开关 | ||||
| addressEnabled: false | addressEnabled: false | ||||
| # 验证码类型 math 数字计算 char 字符验证 | # 验证码类型 math 数字计算 char 字符验证 | ||||
| @@ -1,7 +1,7 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||
| <configuration> | <configuration> | ||||
| <!-- 日志存放路径 --> | <!-- 日志存放路径 --> | ||||
| <property name="log.path" value="D:/NsgkSoft/files/nsgk/logs" /> | |||||
| <property name="log.path" value="D:/NsgkSoft/files/nsgk_file_transfer/logs" /> | |||||
| <!-- 日志输出格式 --> | <!-- 日志输出格式 --> | ||||
| <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> | <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> | ||||