Issues with ROOT_URL and Gitea base URL not updating in Synology Docker instance #10870

Closed
opened 2025-11-02 09:20:45 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @tfraley on GitHub (May 18, 2023).

Description

Good day,

I have a Docker instance running Gitea on a Synology device. I am encountering an issue where the ROOT_URL specified in app.ini is different from the URL being accessed, resulting in potential web functionality issues. Although the error message suggests editing app.ini, I am modifying var/packages/gitea/var/conf.ini instead. I am unsure if these files are equivalent. Additionally, the updated Gitea base URL is not reflected on the admin/config page, despite changes being visible in the conf.ini file. Is this a caching issue or a bug?

Gitea Version

1.17.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

CleanShot 2023-05-18 at 11 27 48@2x
CleanShot 2023-05-18 at 10 02 40@2x

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker on synology

Database

None

Originally created by @tfraley on GitHub (May 18, 2023). ### Description Good day, I have a Docker instance running Gitea on a Synology device. I am encountering an issue where the ROOT_URL specified in app.ini is different from the URL being accessed, resulting in potential web functionality issues. Although the error message suggests editing app.ini, I am modifying var/packages/gitea/var/conf.ini instead. I am unsure if these files are equivalent. Additionally, the updated Gitea base URL is not reflected on the admin/config page, despite changes being visible in the conf.ini file. Is this a caching issue or a bug? ### Gitea Version 1.17.3 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![CleanShot 2023-05-18 at 11 27 48@2x](https://github.com/go-gitea/gitea/assets/1166064/f216c767-b61b-4ad4-bfa6-70b13e7ada12) ![CleanShot 2023-05-18 at 10 02 40@2x](https://github.com/go-gitea/gitea/assets/1166064/92365e51-a3e5-498e-a19a-778f177a9cd8) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker on synology ### Database None
GiteaMirror added the issue/needs-feedback label 2025-11-02 09:20:45 -06:00
Author
Owner

@lunny commented on GitHub (May 19, 2023):

I think maybe you missed the s? It's https://xxx not http://xxx.

@lunny commented on GitHub (May 19, 2023): I think maybe you missed the `s`? It's `https://xxx` not `http://xxx`.
Author
Owner

@techknowlogick commented on GitHub (May 19, 2023):

Have you restarted the service after updating the config?

@techknowlogick commented on GitHub (May 19, 2023): Have you restarted the service after updating the config?
Author
Owner

@tfraley commented on GitHub (May 19, 2023):

I think maybe you missed the s? It's https://xxx not http://xxx.

I added the S but didn't take

@tfraley commented on GitHub (May 19, 2023): > I think maybe you missed the `s`? It's `https://xxx` not `http://xxx`. I added the S but didn't take
Author
Owner

@tfraley commented on GitHub (May 19, 2023):

Have you restarted the service after updating the config?

I stoped and started both containers and restarted docker it self

@tfraley commented on GitHub (May 19, 2023): > Have you restarted the service after updating the config? I stoped and started both containers and restarted docker it self
Author
Owner

@yp05327 commented on GitHub (May 22, 2023):

Did you set the environment variable GITEA__server__ROOT_URL?

@yp05327 commented on GitHub (May 22, 2023): Did you set the environment variable `GITEA__server__ROOT_URL`?
Author
Owner

@wxiaoguang commented on GitHub (May 22, 2023):

You can try to set APP_NAME in your config file (shown as the Site Title in the config page) to other values to see whether you are editing the correct config file.

In history, almost all similar issues are caused by the user edited wrong config file.

@wxiaoguang commented on GitHub (May 22, 2023): You can try to set `APP_NAME` in your config file (shown as the Site Title in the config page) to other values to see whether you are editing the correct config file. In history, almost all similar issues are caused by the user edited wrong config file.
Author
Owner

@tfraley commented on GitHub (May 22, 2023):

Figured it out.. Feel free to close thank you

@tfraley commented on GitHub (May 22, 2023): Figured it out.. Feel free to close thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10870