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/; #该服务的地址
	}
相关推荐
txinyu的博客18 分钟前
UDP & TCP
网络协议·tcp/ip·udp
2501_9160088920 分钟前
iOS开发APP上架全流程解析:从开发到App Store的完整指南
android·ios·小程序·https·uni-app·iphone·webview
一颗青果24 分钟前
IP分片与组装
网络·网络协议·tcp/ip
nnerddboy36 分钟前
嵌入式面试题:1.协议:IIC、SPI、TCP/IP
网络·网络协议·tcp/ip
lsswear1 小时前
swoole http 客户端
http·swoole
..过云雨1 小时前
拆解 UDP 协议:从协议格式理解UDP
网络·网络协议·udp
乾元1 小时前
当奥本海默遇到图灵:AI 开启的网络安全新纪元
服务器·网络·人工智能·网络协议·安全·web安全
科技块儿1 小时前
如何编程调用IP查询API?(PythonJava等示例)
网络协议·tcp/ip·lua
Arwen30311 小时前
IP地址证书的常见问题有哪些?有没有特殊渠道可以申请免费IP证书?
服务器·网络·网络协议·tcp/ip·http·https