Where is the /assets/img/ directory in the container? #8074

Closed
opened 2025-11-02 07:53:01 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @vuhuythanh1995 on GitHub (Nov 4, 2021).

Gitea Version

1.15.5

Git Version

2.30.2

Operating System

Container.

How are you running Gitea?

docker-compose.

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

After running docker-compose including Gitea 1.15.5 and Postgres 10, I got into the container and did the data extraction.
After I run the command:
$ gitea -c /etc/gitea/app.ini embedded list
I see the directories are: options/ public/ templates/
I know those are customizable folders and i want to change the logo of my gitea homepage.
after i do put the image in public/img folder and change the image path in template/ nothing happens on my gitea homepage.
I have checked the link of the logo on the website, after opening the image in a new tab I see the current image path is:
http://..*.**:3333/assets/img/logo.svg
How can i extract assets/ folder.

Screenshots

No response

Originally created by @vuhuythanh1995 on GitHub (Nov 4, 2021). ### Gitea Version 1.15.5 ### Git Version 2.30.2 ### Operating System Container. ### How are you running Gitea? docker-compose. ### Database PostgreSQL ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Description After running docker-compose including Gitea 1.15.5 and Postgres 10, I got into the container and did the data extraction. After I run the command: $ gitea -c /etc/gitea/app.ini embedded list I see the directories are: options/ public/ templates/ I know those are customizable folders and i want to change the logo of my gitea homepage. after i do put the image in public/img folder and change the image path in template/ nothing happens on my gitea homepage. I have checked the link of the logo on the website, after opening the image in a new tab I see the current image path is: http://***.***.*.**:3333/assets/img/logo.svg How can i extract assets/ folder. ### Screenshots _No response_
Author
Owner

@wxiaoguang commented on GitHub (Nov 4, 2021):

https://docs.gitea.io/en-us/customizing-gitea/#serving-custom-public-files

For example, a file image.png stored in $GITEA_CUSTOM/public/, can be accessed with the url http://gitea.domain.tld/assets/image.png.

Please read the document carefully.

@wxiaoguang commented on GitHub (Nov 4, 2021): https://docs.gitea.io/en-us/customizing-gitea/#serving-custom-public-files `For example, a file image.png stored in $GITEA_CUSTOM/public/, can be accessed with the url http://gitea.domain.tld/assets/image.png.` Please read the document carefully.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8074