linux系统kkFileView 配置https预览文件

思路:

1.kkfile的 context全局路径可以修改 context-path,比如:server.servlet.context-path

2.使用nginx反向代理 /kkfile 转发到 kkfile路径上

官网教程

​​​​​​kkFileView - 在线文件预览

1、配置config/application.properties.

复制代码
server.servlet.context-path=/preview

base.url = https://file.keking.com/preview

2、nginx反向代理

复制代码
#kkFileView的反向代理
	location /preview/ { 
		client_max_body_size  1024m;
		client_body_buffer_size 1024m; 
		
		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;
		proxy_pass http://10.10.1.96:8012/preview/; #该服务的地址
	}
相关推荐
FPGA_Linuxer18 小时前
FPGA 40 DAC线缆和光模块带光纤实现40G UDP差异
网络协议·fpga开发·udp
real 118 小时前
传输层协议UDP
网络·网络协议·udp
ftpeak1 天前
从零开始使用 axum-server 构建 HTTP/HTTPS 服务
网络·http·https·rust·web·web app
hsjkdhs1 天前
网络编程之UDP广播与粘包问题
网络·网络协议·udp
00后程序员张1 天前
详细解析苹果iOS应用上架到App Store的完整步骤与指南
android·ios·小程序·https·uni-app·iphone·webview
yzx9910131 天前
接口协议全解析:从HTTP到gRPC,如何选择适合你的通信方案?
网络·人工智能·网络协议·flask·pygame
板鸭〈小号〉1 天前
UDP-Server(3)chat聊天室
网络·网络协议·udp
weixin_456904272 天前
使用HTTPS 服务在浏览器端使用摄像头的方式解析
网络协议·http·https
不会叫的狼2 天前
HTTPS + 域名 + 双向证书认证(下)
https
疯狂的维修2 天前
关于Gateway configration studio软件配置网关
网络协议·c#·自动化·gateway