绑定域名后好像用不了
将容器代理后,使用IP:端口可以正常访问和使用。如果用域名绑定,可以访问web页面,但输入什么,都无法输出,searxng也提示获取参考资料失败了
如果用域名的话,建议用nginx,做一层反向代理,demo站就是
您好,我是用nginx 容器,对search做反向代理,web可以正常浏览,但无法正常使用,不知道配置需要修改哪里。期待您的回复,谢谢。
Deland
zac_ma @.***>于2024年7月27日 周六21:41写道:
如果用域名的话,建议用nginx,做一层反向代理,demo站就是
— Reply to this email directly, view it on GitHub https://github.com/yokingma/search_with_ai/issues/43#issuecomment-2254152737, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJCNYJHDERSSURGLTWNET3ZOOPRRAVCNFSM6AAAAABLRV5QMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGE2TENZTG4 . You are receiving this because you authored the thread.Message ID: @.***>
我想可能是Nginx配置问题吧,你可以参考下我的
server {
listen 443;
listen [::]:443 ipv6only=on;
server_name isou.chat www.isou.chat;
ssl on;
ssl_certificate /home/.../isou.chat.pem;
ssl_certificate_key /home/.../isou.chat.key;
location / {
gzip on;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json;
gzip_vary on;
gzip_http_version 1.1;
proxy_pass http://127.0.0.1:3000/;
proxy_set_header Host isou.chat;
proxy_http_version 1.1;
proxy_buffering off;
proxy_cache off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
好的,我明天试试,谢谢指导!
Deland
zac_ma @.***>于2024年7月27日 周六23:15写道:
我想可能是Nginx配置问题吧,你可以参考下我的
server { listen 443; listen [::]:443 ipv6only=on; server_name isou.chat www.isou.chat; ssl on; ssl_certificate /home/.../isou.chat.pem; ssl_certificate_key /home/.../isou.chat.key; location / { gzip on; gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json; gzip_vary on; gzip_http_version 1.1; proxy_pass http://127.0.0.1:3000/; proxy_set_header Host isou.chat; proxy_http_version 1.1; proxy_buffering off; proxy_cache off; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } }
— Reply to this email directly, view it on GitHub https://github.com/yokingma/search_with_ai/issues/43#issuecomment-2254175878, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJCNYKWZNGYHJY326KHJYLZOO2QLAVCNFSM6AAAAABLRV5QMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGE3TKOBXHA . You are receiving this because you authored the thread.Message ID: @.***>