You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@answer.apache.org by "echs-top (via GitHub)" <gi...@apache.org> on 2025/10/25 09:04:16 UTC
[I] about public_url [answer]
echs-top opened a new issue, #1408:
URL: https://github.com/apache/answer/issues/1408
ui相关设置public_url是否可以是使用cdn链接,以及public_url涉及到具体目录是什么
Whether the ui-related settings public _ URL can use CDN links, and what specific directories are involved in public _ URL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org
Re: [I] about public_url [answer]
Posted by "echs-top (via GitHub)" <gi...@apache.org>.
echs-top commented on issue #1408:
URL: https://github.com/apache/answer/issues/1408#issuecomment-3450903569
> It can be regarded as a CDN address, which itself is an address for handling static resources.If you use a CDN address, you need to upload the static resources yourself.
>
> refer: https://answer.apache.org/docs/deploy-subdirectory
我使用源码和make ui构建了静态文件并上传到cdn,
我更改了/conf/config.yaml并重启了answer但它在前端并没有生效……
ui:
public_url: 'https://cdn.echs.top/build/'
base_url: ""
api_base_url: ""
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org
Re: [I] about public_url [answer]
Posted by "shuashuai (via GitHub)" <gi...@apache.org>.
shuashuai commented on issue #1408:
URL: https://github.com/apache/answer/issues/1408#issuecomment-3449190840
It can be regarded as a CDN address, which itself is an address for handling static resources.If you use a CDN address, you need to upload the static resources yourself.
refer: https://answer.apache.org/docs/deploy-subdirectory
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org
Re: [I] about public_url [answer]
Posted by "echs-top (via GitHub)" <gi...@apache.org>.
echs-top commented on issue #1408:
URL: https://github.com/apache/answer/issues/1408#issuecomment-3450004492
> It can be regarded as a CDN address, which itself is an address for handling static resources.If you use a CDN address, you need to upload the static resources yourself.
>
> refer: https://answer.apache.org/docs/deploy-subdirectory
那么我如何找到这部分静态资源呢,有github仓库或者answer的命令生成ui目录?
So how do I find this part of the static resource, the github repository or the ui-generated directory of the answer command?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org
Re: [I] about public_url [answer]
Posted by "echs-top (via GitHub)" <gi...@apache.org>.
echs-top commented on issue #1408:
URL: https://github.com/apache/answer/issues/1408#issuecomment-3454365894
> 我们有两个CDN插件,如下所示:
>
> * [CDN 阿里云](https://github.com/apache/answer-plugins/tree/main/cdn-aliyun)
>
> * [CDN S3](https://github.com/apache/answer-plugins/tree/main/cdn-s3)
>
>
> 根据具体需求选择这两个CDN插件,将使你更易于配置CDN。当然,您也可以参考我们的插件开发文档,以基于您想要的平台开发CDN插件。
>
> * [使用插件](https://answer.apache.org/zh-CN/docs/plugins)
>
> * [插件开发指南](https://answer.apache.org/docs/development/plugins/)
我想使用自己的加速链接,而不是亚马逊和阿里的付费cdn
另外如果设置了public_url还需要插件,那这个config就没有存在的意义了
I want to use my own accelerated link instead of Amazon and Ali's paid CDN.
In addition, if the public _ URL is set and a plug-in is needed, then the config has no meaning to exist.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org
Re: [I] about public_url [answer]
Posted by "shuashuai (via GitHub)" <gi...@apache.org>.
shuashuai commented on issue #1408:
URL: https://github.com/apache/answer/issues/1408#issuecomment-3455315566
> I changed the"/conf/config.yaml" and restarted answer, but it didn't take effect on the front..
>
> ui
Have you checked the static resource addresses after using make ui to build?
eg:
<img width="870" height="727" alt="Image" src="https://github.com/user-attachments/assets/ece0e921-a735-473f-82fb-fe9e0dc63177" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org
Re: [I] about public_url [answer]
Posted by "shuashuai (via GitHub)" <gi...@apache.org>.
shuashuai commented on issue #1408:
URL: https://github.com/apache/answer/issues/1408#issuecomment-3459343050
> > > I changed the"/conf/config.yaml" and restarted answer, but it didn't take effect on the front..
> > > ui
> >
> >
> > Have you checked the static resource addresses after using make ui to build?
> > eg:
> > <img alt="Image" width="870" height="727" src="https://private-user-images.githubusercontent.com/30591202/506449434-ece0e921-a735-473f-82fb-fe9e0dc63177.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjE2NzU1NjksIm5iZiI6MTc2MTY3NTI2OSwicGF0aCI6Ii8zMDU5MTIwMi81MDY0NDk0MzQtZWNlMGU5MjEtYTczNS00NzNmLTgyZmItZmU5ZTBkYzYzMTc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDI4VDE4MTQyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViNDNkYzc3OGJhMThhYmVhMDM5NDQ0MjYyNTFhMTBjZTA2ZTQxNGI3ZGJiNWY5OTcxZDk3OGU0YzhkZjdiYjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hFOoVkUJGXNSr9-WW2pcJ6bop_8eTmqAgCX9R55qKPA">
>
> 哦,构建前得先修改".env.production"是吧?另外我不需要重新构建answer的程序吧,只需要在answer目录下"/conf/config.yaml"中填写cdn链接就行吧
>
> Oh, you have to fix it before you build".env.production"? In addition, I don't need to rebuild the answer program, just fill in the CDN link in the "/conf/config.yaml "under the answer directory.
After configuring config.yaml, it's done. There will be a script to automatically handle injecting the environment variables for the UI.
Answer needs to be rebuilt because the resources in answer have changed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org
Re: [I] about public_url [answer]
Posted by "kumfo (via GitHub)" <gi...@apache.org>.
kumfo commented on issue #1408:
URL: https://github.com/apache/answer/issues/1408#issuecomment-3454117791
We have two CDN plugins, as shown below:
- [CDN Aliyun](https://github.com/apache/answer-plugins/tree/main/cdn-aliyun)
- [CDN S3](https://github.com/apache/answer-plugins/tree/main/cdn-s3)
Choosing these two CDN plugins according to specific needs will make it easier for you to configure CDN. Of course, you can also refer to our plugin development documents to develop a CDN plugin based on the platform you want.
- [Using Plugins](https://answer.apache.org/zh-CN/docs/plugins)
- [Plugins Development Guide](https://answer.apache.org/docs/development/plugins/)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org
Re: [I] about public_url [answer]
Posted by "echs-top (via GitHub)" <gi...@apache.org>.
echs-top commented on issue #1408:
URL: https://github.com/apache/answer/issues/1408#issuecomment-3457853619
> > I changed the"/conf/config.yaml" and restarted answer, but it didn't take effect on the front..
> > ui
>
> Have you checked the static resource addresses after using make ui to build?
>
> eg:
> <img alt="Image" width="870" height="727" src="https://private-user-images.githubusercontent.com/30591202/506449434-ece0e921-a735-473f-82fb-fe9e0dc63177.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjE2NzU1NjksIm5iZiI6MTc2MTY3NTI2OSwicGF0aCI6Ii8zMDU5MTIwMi81MDY0NDk0MzQtZWNlMGU5MjEtYTczNS00NzNmLTgyZmItZmU5ZTBkYzYzMTc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDI4VDE4MTQyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViNDNkYzc3OGJhMThhYmVhMDM5NDQ0MjYyNTFhMTBjZTA2ZTQxNGI3ZGJiNWY5OTcxZDk3OGU0YzhkZjdiYjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hFOoVkUJGXNSr9-WW2pcJ6bop_8eTmqAgCX9R55qKPA">
哦,构建前得先修改".env.production"是吧?另外我不需要重新构建answer的程序吧,只需要在answer目录下"/conf/config.yaml"中填写cdn链接就行吧
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org