首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >nginx 代理nifi 修改配置 报错Please ensure the application is running and check the logs for any errors.?

nginx 代理nifi 修改配置 报错Please ensure the application is running and check the logs for any errors.?

提问于 2024-03-12 18:58:04
回答 0关注 0查看 65

其实有2个问题 第一个是 nginx代理 后台http的 nifi 页面可以修改,但是拖拽 模块就报错: Please ensure the application is running and check the logs for any errors.

代码语言:text
复制
nifi 主要配置如下:  nifi.remote.input.host=
nifi.remote.input.secure=false
nifi.remote.input.socket.port=
nifi.remote.input.http.enabled=true
nifi.remote.input.http.transaction.ttl=30 sec
nifi.remote.contents.cache.expiration=30 secs

# web properties #
#############################################

# For security, NiFi will present the UI on 127.0.0.1 and only be accessible through this loopback interface.
# Be aware that changing these properties may affect how your instance can be accessed without any restriction.
# We recommend configuring HTTPS instead. The administrators guide provides instructions on how to do this.

nifi.web.http.host=0.0.0.0
nifi.web.http.port=15000
nifi.web.http.network.interface.default=

#############################################

nifi.web.https.host=
nifi.web.https.port=
nifi.web.https.network.interface.default=
nifi.web.https.application.protocols=http/1.1
nifi.web.jetty.working.directory=./work/jetty
nifi.web.jetty.threads=200
nifi.web.max.header.size=16 KB
nifi.web.proxy.context.path=
nifi.web.proxy.host=101.200.237.135:12000
nifi.web.max.content.size=
nifi.web.max.requests.per.second=30000
nifi.web.max.access.token.requests.per.second=25
nifi.web.request.timeout=60 secs
nifi.web.request.ip.whitelist=
nifi.web.should.send.server.version=true
nifi.web.request.log.format=%{client}a - %u %t "%r" %s %O "%{Referer}i" "%{User-Agent}"



nginx 配置如下:

server {
    listen 12500;
    server_name 127.0.0.1;

    location /nifi {
        proxy_pass http://127.0.0.1:15000/nifi;  # 将 nifi-server-ip 替换为实际的 NiFi 服务器 IP 地址
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

直接访问 101.200.237.135:15000 是没有问题的 可以正常操作

请大神看看是什么原因。

第二个问题是 这边期望访问nifi的时候 调的用户名密码页面,但是现在1.25版本上只有https访问的话才会有登录页面,这边也是搞了好久没搞定,使用nginx代理 https://127.0.0.1页面也是会报错,请大神给看看啥情况?

回答

和开发者交流更多问题细节吧,去?写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com