Disabling warning about ROOT URL?

Heyo,
Is there a parameter in app.ini config file, which disables the warning below?

I need to disable it, because I am running Gitea on multiple domains.

No, there is none.
The reason for the warning is the following: Many links generated by Gitea are absolute and point to ROOT_URL/<location>.
Gitea is not intended to be run on multiple domains.
I also don’t exactly see a reason why you would need to run the same instance on multiple domains.
If you really need to access the instance under separate domains, why not put a reverse proxy before gitea that redirects all different domains to your main domain?

1 Like

It might be a bit complicated.

I have also tried %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ into ROOT_URL, but it shows http://localhost:9100/ as url. I’m using Gitea from DockerHub.

It’s going through reverse proxy with the configuration below:

server {
	listen 443 ssl;
	listen [::]:443 ssl;

	server_name gitea gitea.gameplayer.libre;

	include /server/nginx/services-signed.conf;
	include /server/nginx/services-params.conf;

#	absolute_redirect off;

	if ($request_method !~ ^(GET|HEAD|POST)$) { return 444; }

	error_page  497              https://$host:443$request_uri;

	location / {
                 proxy_pass "http://127.0.0.1:9100";
                 proxy_set_header Accept-Encoding "";
                 proxy_set_header Host $Host;
                 proxy_pass_request_headers      on;
                 proxy_set_header X-Real-IP $remote_addr;
                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                 proxy_set_header X-Forwarded-Proto $scheme;
                 proxy_hide_header X-Frame-Options;
        }
}