-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
gitgraph.js could not be served by webserver #11839
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
Comments
May be related to c0c3a53 which fixed the handling of the |
I observe the same problem on our instance and STATIC_URL_PREFIX we have empty – i.e. according to the url of the application. See: https://mirror.git.trinitydesktop.org/gitea/TDE/kchmviewer/graph |
Ah, I see the issue. 1.11 still uses |
It shows up as |
Yes, we have the prefix specified as part of the application url:
|
I don't have STATIC_URL_PREFIX set either. This is my gitea-side server configuration:
In the apache config, I am redirecting my /git to localhost:3000 Log files don't show any errors, just database queries. EDIT: Journalctl prints the following:
|
It's fine. Internally, STATIC_URL_PREFIX is assigned a default even when unset which just means we can probably simplify the logic in JS later on the assumption that it will always be set. Bug will be fixed in 1.11.7. |
Thanks for the update, I just did the upgrade! Sorry to bother you again, but the request still fails:
Looking at I haven't change anything besides replacing the executable and doing a reboot. |
Now that 1.12.0 is out, are you able to verify the behaviour with that version? |
There are no binaries for the 1.12.0 release yet, but I tried 1.12.0-rc2 instead and the gitgraph is working there again. |
Ok binaries for 1.12.0 just arrived, gitgraph is also working for me with the new release :) Thanks a lot! |
Trailing slash is actually significant, fixed that and i've now tested it as well. Ref: go-gitea#11839 (comment)
I'm sorry, I did not actually test that fix. Correction in #11961. Thought, upgrading to 1.12 is of course a even better solution. |
Trailing slash is actually significant, fixed that and i've now tested it as well. Ref: #11839 (comment)
[x]
):Description
I am hosting a gitea instance with apache2 on a sub-path using a reverse proxy.
Since version 1.11.5 the commit graph cannot be displayed because the file gitgraph.js was not found.
Comparing with try.gitea.io, the file should be served on /js/girgraph.js.
It is found when manually requesting it on my domain, but navigating to the commit graph page requests it from /gitgraph.js (missing the js subfolder).
Since it was working before 1.11.5 and other files in sub-paths are correctly requested (i.e. /img/favicon.png), I don't think it is the fault of my reverse proxy settings.
Any ideas on that?
The text was updated successfully, but these errors were encountered: