# Gitea 配置 ENABLE\_FEDERATED\_AVATAR 的提示

**URL:** <https://www.isharkfly.com/t/gitea-enable-federated-avatar/5236>\
**Category:** DevOps\
**Tags:** gitea\
**Created:** [September 15, 2026, 4:00am UTC](https://www.isharkfly.com/t/gitea-enable-federated-avatar/5236 "2026-09-15T04:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hex](https://www.isharkfly.com/user_avatar/www.isharkfly.com/hex/32/21953_2.png) [@hex](https://www.isharkfly.com/u/hex)\
**Post date:** [September 15, 2026, 4:00am UTC](https://www.isharkfly.com/t/gitea-enable-federated-avatar/5236/1 "2026-09-15T04:00:00Z")

</div>

错误提示信息为：

```auto
Deprecation: config option `[picture].ENABLE_FEDERATED_AVATAR` present but it won't take effect because it has been moved to admin panel -> config setting

```

 ![2026-09-15_10-48-32](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/9/8/988fe6e683546c051a2561ee4d3e622c4af467d8.jpeg)

配置中的：

```auto
ENABLE_FEDERATED_AVATAR = true

```

可以进行删除。

 ![2026-09-15_10-52-21](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/0/5/05b5c96308f07839b62cbe145bbcdec9098d8f7e.jpeg)

但在你当前使用的新版 Gitea 中，这个选项已经不再从 `app.ini` 读取，而是移动到了 **Admin Panel → Configuration Settings** 中。因此即使你继续在 Docker Compose 或 `app.ini` 中设置它，也 **不会生效** 。

可以在后台中直接启用这个配置：

 ![2026-09-15_10-55-19](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/6/0/606191cfa27142cf52cf747ad5b47e6636916e0b.jpeg)

直接运行： `docker compose up -d --force-recreate gitea` 命令来对容器进行重新创建和更新。

```auto
root@ns1010656:/opt/gitea# docker compose up -d --force-recreate gitea
[+] up 2/2
 ✔ Container gitea-db Healthy 4.6s
 ✔ Container gitea Started 5.9s
root@ns1010656:/opt/gitea# 

```

完成容器重建后，可以看到没有上面的警告。
