如何获得 github 页面来提供像 RFC5785 的 /.well-known/ 这样的点文件?
How can one get github pages to serve dot files like RFC5785's /.well-known/?
我已经从 Github master 分支为我的文档项目填充了一个文档网站。
我希望 https://
mydomain/.well-known/security.txt
为每个 securitytxt.org tree/master/.well-known/security.txt
下的文件提供
security.txt defines a standard to help organizations define the process for security researchers to disclose security vulnerabilities securely.
For websites, the security.txt file should be placed under the /.well-known/
path (/.well-known/security.txt
) [RFC5785]. It can also be placed in the root directory (/security.txt
) of a website, especially if the /.well-known/
directory cannot be used for technical reasons, or simply as a fallback.
我看到的问题是 .well-known
似乎被 Github 页面忽略,大概是因为根据 POSIX 文件约定它是一个隐藏文件。这是可配置的吗?
我可以使用上面引用的备用方法,但如果可能的话我宁愿遵循 RFC5785。
作为参考,我目前关注的项目是https://github.com/temper-lang/docs and I expect the security.txt to show up at https://temperlang.dev/.well-known/security.txt但是得到了404。
下面是我的 Github 页面配置的截图:
如果您的站点使用的是 Jekyll,这可能不是您的解决方案,但就我而言,我能够通过在Github 个页面存储库。
我通过在 Whosebug 上进行更多搜索找到了这个。归功于此 answer.
我已经从 Github master 分支为我的文档项目填充了一个文档网站。
我希望 https://
mydomain/.well-known/security.txt
为每个 securitytxt.org tree/master/.well-known/security.txt
下的文件提供
security.txt defines a standard to help organizations define the process for security researchers to disclose security vulnerabilities securely.
For websites, the security.txt file should be placed under the
/.well-known/
path (/.well-known/security.txt
) [RFC5785]. It can also be placed in the root directory (/security.txt
) of a website, especially if the/.well-known/
directory cannot be used for technical reasons, or simply as a fallback.
我看到的问题是 .well-known
似乎被 Github 页面忽略,大概是因为根据 POSIX 文件约定它是一个隐藏文件。这是可配置的吗?
我可以使用上面引用的备用方法,但如果可能的话我宁愿遵循 RFC5785。
作为参考,我目前关注的项目是https://github.com/temper-lang/docs and I expect the security.txt to show up at https://temperlang.dev/.well-known/security.txt但是得到了404。
下面是我的 Github 页面配置的截图:
如果您的站点使用的是 Jekyll,这可能不是您的解决方案,但就我而言,我能够通过在Github 个页面存储库。
我通过在 Whosebug 上进行更多搜索找到了这个。归功于此 answer.