Custom icons don't work with CDN configuration #4254

Closed
opened 2025-11-02 05:44:00 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @RalphORama on GitHub (Nov 6, 2019).

Description

I have gitea set up with a CDN as specified in the docs. I'm trying to change the default user avatar (also specified in the docs) by placing my custom image in /var/lib/gitea/custom/public/img/avatar_default.png, but the default avatar doesn't change.

I've tried:

  • Restarting gitea (duh)
  • Clearing my browser cache
  • Clearing my browser cache & purging all files on CloudFlare
    • only my CDN is under CloudFlare)

Unfortunately, none of these attempts fixed the issue.

Originally created by @RalphORama on GitHub (Nov 6, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.9.5 - Git version: 2.17.1 - Operating system: Ubuntu Server 18.04 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: https://gist.github.com/RalphORama/8971298a0734ac3724b9765e5652f222 ## Description I have gitea set up with a CDN [as specified in the docs](https://docs.gitea.io/en-us/reverse-proxies/#using-two-nodes-and-two-domains). I'm trying to change the default user avatar ([also specified in the docs](https://docs.gitea.io/en-us/customizing-gitea/#changing-the-default-avatar)) by placing my custom image in `/var/lib/gitea/custom/public/img/avatar_default.png`, but the default avatar doesn't change. I've tried: - Restarting gitea (duh) - Clearing my browser cache - Clearing my browser cache & purging all files on CloudFlare - only my CDN is under CloudFlare) Unfortunately, none of these attempts fixed the issue.
Author
Owner

@lunny commented on GitHub (Nov 6, 2019):

I think v1.9.5 haven't support that feature. refs: #7911

@lunny commented on GitHub (Nov 6, 2019): I think v1.9.5 haven't support that feature. refs: #7911
Author
Owner

@RalphORama commented on GitHub (Nov 6, 2019):

Interesting. I suppose I could create a custom folder on my CDN and modify templates in custom to point at custom assets.

@RalphORama commented on GitHub (Nov 6, 2019): Interesting. I suppose I could create a `custom` folder on my CDN and modify templates in `custom` to point at custom assets.
Author
Owner

@RalphORama commented on GitHub (Nov 6, 2019):

Update: Not sure what was going on with file caching, but I loaded the site on a different computer and the change took effect. Probably some CloudFlare weirdness.

@RalphORama commented on GitHub (Nov 6, 2019): **Update:** Not sure what was going on with file caching, but I loaded the site on a different computer and the change took effect. Probably some CloudFlare weirdness.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4254