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

[本地部署]: http访问正常,可套反向代理使用https时登录界面css丢失,且无法登录 #1181

Open
2 tasks done
Azusa-mikan opened this issue Feb 5, 2025 · 0 comments
Labels
localhost deployment question Further information is requested

Comments

@Azusa-mikan
Copy link

Azusa-mikan commented Feb 5, 2025

是否已存在现有反馈与解答?

  • 我确认没有已有issue或discussion,且已阅读常见问题

是否是一个代理配置相关的疑问?

  • 我确认这不是一个代理配置相关的疑问。

错误描述

无反向代理直接访问http正常

前些日子买了1年泛域名证书,就想着给贵项目加个https
然后我就按照 wiki 配置了反向代理
能访问,但页面css丢失

Image

F12网络选项卡

Image

点击登录时会有无响应的login

Image

请求URL是:我访问的域名+/login
引用站点策略是:strict-origin-when-cross-origin

请求标头

Image

无任何预览

复现操作

http访问正常无问题

在1panel面板新建一个反向代理网站
最终指向:内网192.168.1.104:10101

根据wiki给的反向代理配置修改配置文件

站点配置:

Image

全局配置:

Image

错误日志

nginx日志:

36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET / HTTP/2.0" 200 1752 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /assets/index-D6iiusuW.js HTTP/2.0" 200 12410 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/ChuanhuChat.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/chat-history.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/fake-gradio.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/external-scripts.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/sliders.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/message-button.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/chat-list.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/localization.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/updater.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/file-input.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/stylesheet/chatbot.css?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/stylesheet/override-gradio.css?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/stylesheet/ChuanhuChat.css?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/stylesheet/custom-components.css?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/user-info.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/stylesheet/markdown.css?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/webui.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /file=web_assets/javascript/utils.js?1731738015.0 HTTP/2.0" 401 30 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /assets/index-Ds_LdHYW.css HTTP/2.0" 200 6235 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /assets/svelte/svelte.js HTTP/2.0" 200 33087 "https://exple/assets/index-D6iiusuW.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /assets/_commonjsHelpers-BosuxZz1.js HTTP/2.0" 200 745 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /assets/Index-B4pUrfBk.css HTTP/2.0" 200 3627 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /assets/Index-DvJ399W-.js HTTP/2.0" 200 46634 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /favicon.ico HTTP/2.0" 200 76550 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:06 +0000] "GET /assets/index-Ds_LdHYW.css HTTP/2.0" 200 6235 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Index-B0JJ6p9c.css HTTP/2.0" 200 424 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Login-CiRbhdJk.js HTTP/2.0" 200 2321 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Index-DDCF2BFd.js HTTP/2.0" 200 791 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Textbox-OSHpBx5r.js HTTP/2.0" 200 4038 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Info-Cs8uP4Sq.js HTTP/2.0" 200 784 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Check-Ck0iADAu.js HTTP/2.0" 200 606 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Index-INgKs-Lw.js HTTP/2.0" 200 1091 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Login-BCwzjozv.css HTTP/2.0" 200 578 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Copy-ZPOKSMtK.js HTTP/2.0" 200 686 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Example-Cj3ii62O.css HTTP/2.0" 200 149 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/BlockTitle-BG3S3JH7.js HTTP/2.0" 200 1127 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Textbox-D8IAzrZj.css HTTP/2.0" 200 554 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"
36.248.157.232 - - [05/Feb/2025:06:54:07 +0000] "GET /assets/Index-CptIZeFZ.css HTTP/2.0" 200 497 "https://exple/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0" "-"

贵项目没有任何报错

运行环境

运行贵项目使用的
- OS: Windows 10 22H2
- Browser: Microsoft Edge
- Gradio version: 4.29.0
- Python version: 3.9
反向代理使用的
- OS: Debian/GNU Linux 11.7
- 1Panel: v1.10.23-lts
- OpenResty(nginx): 1.21.4.3-3-3-focal

补充说明

No response

@Azusa-mikan Azusa-mikan added localhost deployment question Further information is requested labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
localhost deployment question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant