Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对外提供简单的文件访问服务 能不能只配置 子域名而不设置远程端口? #47

Closed
miws opened this issue Apr 10, 2022 · 1 comment

Comments

@miws
Copy link

miws commented Apr 10, 2022

[common]
server_addr = x.x.x.x
server_port = 7000

[test_static_file]
type = tcp
remote_port = 6000

这个是不是可以不要而使用 subdomain来代替,或者有其他什么方式能够解决?

plugin = static_file

要对外暴露的文件目录

plugin_local_path = /tmp/file

用户访问 URL 中会被去除的前缀,保留的内容即为要访问的文件路径

plugin_strip_prefix = static
plugin_http_user = abc
plugin_http_passwd = abc

@fatedier
Copy link
Member

type = tcp -> type = http

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants