
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Mediawiki + Remote Auth Modules for x64
WARNING: The default /etc/apache2/site-config/ldap.conf in this image showcases the configuration for the LDAP-Module by using the public demo of Freeipa (ip1.demo.freeipa.org). Thus allowing any user in the demo LDAP access to the location /ldap-status, but not the wiki itself.
The main goal is to use Mediawiki with remote authentication. This image thus comes with the following installed:
The relevant configuration files have to be mounted to /etc/apache2/site-config inside the container.
Provide mellon.conf with the follwing content:
ServerName YOUR_URL_GOES_HERE <Location "/"> AuthType Basic AuthName "Authentication Required" AuthUserFile "/etc/apache2/site-config/.htpasswd" Require valid-user </Location>
Of course, you need to provide a pregenerated .htpasswd as well.
Provide mellon.conf in a way that adds a Header to the Request. For example, if you are using traefik:
ServerName YOUR_CONTAINER_IP <Location "/"> SetEnvIf X-Webauth-User ^(.*)$ LOGINNAME=$1 RequestHeader add PHP_AUTH_USER %{LOGINNAME}e </Location>
You don't have to provide a config file, but keys must be generated first (or provided).
The keys go to: /etc/apache2/saml/ inside the container. You have to provide /etc/apache2/saml/mellon_metadata.xml, /etc/apache2/saml/mellon.key, /etc/apache2/saml/mellon.crt and /etc/apache2/saml/idp_metadata.xml.
You can use pregenerated keys or use the script inside the container with:
docker run -it paulritter/tinytinyrss /opt/firstrun.sh FQDN_OF_YOUR_INSTALLATION
It outputs the generated files for you and stores them in a volume.
You can then generate your idp_metadata.xml. For example, if you are using Keycloak, you can use this Guide https://www.keycloak.org/docs/latest/securing_apps/index.html#_mod_auth_mellon
Provide a file called ldap.conf in /etc/apache2/site-config with the relevant settings. This example uses the public demo of FreeIPA
ServerName YOUR_URL_GOES_HERE <Location "/ldap-status"> SetHandler ldap-status AuthType Basic AuthName "LDAP Protected" AuthBasicProvider ldap AuthLDAPInitial***dAsUser on AuthLDAPInitial***dPattern (.+) uid=$1,cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org AuthLDAPUrl "ldap://ipa.demo1.freeipa.org/cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org?uid,displayName,mail??(memberOf=cn=employees,cn=groups,cn=accounts,dc=demo1,dc=freeipa,dc=org)" Require valid-user </Location> <Location "/"> AuthType Basic AuthName "LDAP Protected" AuthBasicProvider ldap AuthLDAPInitial***dAsUser on AuthLDAPInitial***dPattern (.+) uid=$1,cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org AuthLDAPUrl "ldap://ipa.demo1.freeipa.org/cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org?uid,displayName,mail??(memberOf=cn=employees,cn=groups,cn=accounts,dc=demo1,dc=freeipa,dc=org)" Require valid-user </Location>
Provide mellon.conf as follows:
ServerName 127.0.0.1 <Location "/"> RequestHeader add PHP_AUTH_USER YOUR_DESIRED_USERNAME </Location>
The ssmtp configuration goes in /etc/ssmtp inside the container.
Start your container with any of the configuration options above. For example:
docker run -it -p 80:80 -v /etc/timezone:/etc/timezone:ro \ -v /etc/localtime:/etc/localtime:ro \ -v /srv/ssmtp:/etc/ssmtp \ -v /srv/mediawiki:/etc/apache2/site-config \ paulritter/mediawiki:latest
Navigate to http://YOUR_URL/ and configure your instance.
Save the configuration file, terminate the container and provide the file to the container on next startup. Make sure to include adjustments for the Auth_Remoteuser plugin of Mediawiki.
docker run -d -p 80:80 -v /etc/timezone:/etc/timezone:ro \ -v /etc/localtime:/etc/localtime:ro \ -v /srv/ssmtp:/etc/ssmtp \ -v /srv/mediawiki/LocalSettings.php:/var/www/html/LocalSettings.php:z \ -v /srv/mediawiki/images:/var/www/html/images:z \ -v /srv/mediawiki/conf:/etc/apache2/site-config:z \ paulritter/tinytinyrss:latest
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 paulritter/mediawiki 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: