Cannot overload public files #846

Closed
opened 2025-11-02 03:38:52 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @domhaas on GitHub (Jun 26, 2017).

  • Gitea version (or commit ref): 1.1.2
  • Git version: 2.1.4
  • Operating system: Debian 8.8
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I got an issue to include custom assets, like my own favicon.png. I tried every combination in the file structure and also played around with the STATIC_ROOT_PATH. I also tried to overload templates or other Images. It is simply not working at all.

My structure:

/home/git/gitea/gitea (executable)
/home/git/gitea/custom/conf/app.ini (is used)
/home/git/gitea/public/img/favicon.png (not used at all)

I'm using an Apache proxy to the outside. But I tried also to directly connect via Port 3000 to the Webgui.

ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
Originally created by @domhaas on GitHub (Jun 26, 2017). - Gitea version (or commit ref): 1.1.2 - Git version: 2.1.4 - Operating system: Debian 8.8 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description I got an issue to include custom assets, like my own favicon.png. I tried every combination in the file structure and also played around with the STATIC_ROOT_PATH. I also tried to overload templates or other Images. It is simply not working at all. My structure: /home/git/gitea/gitea (executable) /home/git/gitea/custom/conf/app.ini (is used) /home/git/gitea/public/img/favicon.png (not used at all) I'm using an Apache proxy to the outside. But I tried also to directly connect via Port 3000 to the Webgui. ``` ProxyPreserveHost On ProxyRequests off ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ ```
GiteaMirror added the type/question label 2025-11-02 03:38:52 -06:00
Author
Owner

@domhaas commented on GitHub (Jun 26, 2017):

Ok. Classic fail - gitea was not up to date. Now it's working perfectly. Sorry about that...

@domhaas commented on GitHub (Jun 26, 2017): Ok. Classic fail - gitea was not up to date. Now it's working perfectly. Sorry about that...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#846