Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring ROOT_URL after Docker startup will be invalid #30726

Open
ferrymo opened this issue Apr 27, 2024 · 4 comments
Open

Configuring ROOT_URL after Docker startup will be invalid #30726

ferrymo opened this issue Apr 27, 2024 · 4 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@ferrymo
Copy link

ferrymo commented Apr 27, 2024

Description

Using Docker Compose for initial startup without configuring ROOT_URL, and subsequently modifying the ROOT_URL in the environment variable to restart the container is invalid

Modify the ROOT_URL in Docker Compose.yml to remove the container and run it again using the original address
docker-compose.yml service:
image
docker logs:
image

Manually modifying the ROOT_URL configuration in the app.ini, and successfully restart the container
image

Gitea Version

1.21.10

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

centos7

How are you running Gitea?

docker

Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:10:14 2017
 OS/Arch:	linux/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:46 2017
  OS/Arch:	linux/amd64
  Experimental:	false

docker-compose

docker-compose version 1.18.0, build 8dd22a9
docker-py version: 2.6.1
CPython version: 2.7.13
OpenSSL version: OpenSSL 1.0.1t  3 May 2016

Database

PostgreSQL

@wxiaoguang
Copy link
Contributor

GITEA__server__ROOT_URL

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/bug labels Apr 27, 2024
@wxiaoguang
Copy link
Contributor

Resolved?

@ferrymo
Copy link
Author

ferrymo commented May 6, 2024

Resolved?

I don't understand

@wxiaoguang
Copy link
Contributor

See your screenshot, like this:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

2 participants