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

🐛 [Gitea] ROOT_URL and DOMAIN not updating #998

Closed
zarya opened this issue Sep 22, 2023 · 1 comment
Closed

🐛 [Gitea] ROOT_URL and DOMAIN not updating #998

zarya opened this issue Sep 22, 2023 · 1 comment
Labels
bug Something isn't working stale Element will be closed automatically

Comments

@zarya
Copy link

zarya commented Sep 22, 2023

Description

Settings in the addon page do not seem to update inside the container

Gitea settings page:
image

Addon Settings (yaml)

APP_NAME: Giga Git
DOMAIN: git.mydomain.net
certfile: fullchain.pem
keyfile: privkey.pem
ssl: true
ROOT_URL: https://git.mydomain.net

Reproduction steps

1. Go to 'addon settings'
2. Change ROOT_URL and DOMAIN
3. Restart container
4. See in gitea /admin/settings that Server domain and Gitea Base URL have not been updated

Addon Logs

Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
 Add-on: Gitea
 Gitea for Home Assistant
-----------------------------------------------------------
 Add-on version: 1.20.4-2
 You are running the latest version of this add-on.
 System: Home Assistant OS 10.5  (aarch64 / yellow)
 Home Assistant Core: 2023.9.2
 Home Assistant Supervisor: 2023.09.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
/etc/cont-init.d/01-custom_script.sh: executing
[09:32:42] INFO: Execute /config/addons_autoscripts/gitea.sh if existing
[09:32:42] INFO: ... no script found
/etc/cont-init.d/99-run.sh: executing
[09:32:43] INFO: ssl is enabled
[09:32:45] INFO: ssl is enabled
ROOT_URL not set, using extrapolated value : https://git.mydomain.net:3000
parameter set : APP_NAME=Giga Git
parameter set : DOMAIN=git.mydomain.net
parameter set : ROOT_URL=https://git.mydomain.net
[09:32:48] INFO: Please wait while the app is loading !
Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2023/09/22 11:32:48 cmd/web.go:223:runWeb() [I] Starting Gitea on PID: 278
2023/09/22 11:32:48 cmd/web.go:148:serveInstalled() [I] Gitea version: 1.20.4 built with GNU Make 4.4.1, go1.20.8 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2023/09/22 11:32:48 cmd/web.go:149:serveInstalled() [I] App path: /usr/local/bin/gitea
2023/09/22 11:32:48 cmd/web.go:150:serveInstalled() [I] Work path: /data/gitea
2023/09/22 11:32:48 cmd/web.go:151:serveInstalled() [I] Custom path: /data/gitea
2023/09/22 11:32:48 cmd/web.go:152:serveInstalled() [I] Config file: /data/gitea/conf/app.ini
2023/09/22 11:32:48 cmd/web.go:153:serveInstalled() [I] Run mode: prod
2023/09/22 11:32:48 cmd/web.go:154:serveInstalled() [I] Prepare to run web server
2023/09/22 11:32:48 routers/init.go:112:InitWebInstalled() [I] Git version: 2.40.1, Wire Protocol Version 2 Enabled (home: /data/gitea/home)
2023/09/22 11:32:49 ...g/config_provider.go:325:deprecatedSetting() [E] Deprecated config option `[log]` `ROUTER` present. Use `[log]` `logger.router.MODE` instead. This fallback will be/has been removed in 1.21
...
2023/09/22 11:32:50 cmd/web.go:285:listen() [I] Listen: https://0.0.0.0:3000
2023/09/22 11:32:50 cmd/web.go:289:listen() [I] AppURL(ROOT_URL): http://x.x.x.2:3000/

Architecture

armv7

OS

HAos

@zarya zarya added the bug Something isn't working label Sep 22, 2023
alexbelgium added a commit that referenced this issue Sep 23, 2023
alexbelgium added a commit that referenced this issue Sep 23, 2023
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Element will be closed automatically label Sep 27, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Element will be closed automatically
Projects
None yet
Development

No branches or pull requests

1 participant